diff --git a/MathHubWorker/pom.xml b/MathHubWorker/pom.xml index e37ff619e9548136a90ba54faef14f7f03346585..b36ec6fe4fc9e2827c924b4c99fa089bf0ca30bc 100644 --- a/MathHubWorker/pom.xml +++ b/MathHubWorker/pom.xml @@ -55,13 +55,19 @@ <version>${sally4.version}</version> </dependency> + <dependency> + <groupId>info.kwarc.sally4</groupId> + <artifactId>utils</artifactId> + <version>${sally4.version}</version> + </dependency> + <dependency> <groupId>info.kwarc.sally4</groupId> <artifactId>planetary</artifactId> <version>${sally4.version}</version> </dependency> - - + + <dependency> <groupId>info.kwarc.sally4</groupId> <artifactId>docmanager</artifactId> diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/MathHubWorkerManager.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/MathHubWorkerManager.java index 6807809ccc2bd3b6029c546e0dea2577d632dca0..9c1cd417b93a82818e8c287460505d5e125433eb 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/MathHubWorkerManager.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/MathHubWorkerManager.java @@ -1,8 +1,6 @@ package info.kwarc.sally4.mathhubworker; -import info.kwarc.sally4.docmanager.AlexRoute; public interface MathHubWorkerManager { - void addNewWorker(AlexRoute route); } diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/LMHWorkflow.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/LMHWorkflow.java index 6a589787607a3d0de3ae51d1c33d7c84f0f91235..2d0ddc9672aa86eb933e1f98fdd4e636834a52fe 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/LMHWorkflow.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/LMHWorkflow.java @@ -45,7 +45,7 @@ public class LMHWorkflow implements IDocWorkflow { @Override public IDocWorkflowInstance createDocumentInstance(AlexRoute route) { CamelContext context = new DefaultCamelContext(); - LMHWorkflowInstance lmhWorkflowInstance = new LMHWorkflowInstance(route); + LMHWorkflowInstance lmhWorkflowInstance = new LMHWorkflowInstance(route, this); try { context.addRoutes(lmhWorkflowInstance); context.start(); diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubEnvironment.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubEnvironment.java index 08ecec31465e3bce71a0da6f4168fc5d0efd786b..925d20668e99de71db3e0f2db007bf51d3a275bd 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubEnvironment.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubEnvironment.java @@ -1,34 +1,19 @@ package info.kwarc.sally4.mathhubworker.impl; -import info.kwarc.sally4.docmanager.AlexRoute; +import java.util.ArrayList; +import java.util.List; -import java.util.HashMap; public class MathHubEnvironment { - HashMap<String, AlexRoute> workers; - Runnable onEmpty; - + List<String> services; + public MathHubEnvironment() { - workers = new HashMap<String, AlexRoute>(); - } - - public void setOnEmpty(Runnable onEmpty) { - this.onEmpty = onEmpty; - } - - public void addWorker(final AlexRoute worker) { - workers.put(worker.getDocQueue(), worker); - worker.addOnStopHandler(new Runnable() { - - @Override - public void run() { - workers.remove(worker.getDocQueue()); - if (workers.size() == 0 && onEmpty != null) { - onEmpty.run(); - } - } - }); + services = new ArrayList<String>(); + } + + public void addService(String serviceName) { + } - + } diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubManagerModel.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubManagerModel.java new file mode 100644 index 0000000000000000000000000000000000000000..d235114353ea0bb9f93328f9a35c02ac3702c224 --- /dev/null +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubManagerModel.java @@ -0,0 +1,40 @@ +package info.kwarc.sally4.mathhubworker.impl; + +import info.kwarc.sally4.docmanager.DocumentManager; + +import java.util.HashMap; + +/** + * Manages the connection between documents and MathHubWorker environments + * @author Constantin Jucovschi + * + */ +public class MathHubManagerModel { + // mapping between a document alex route and an environment + HashMap<String, String> docEnvMapping; + DocumentManager docManager; + + public MathHubManagerModel(DocumentManager docManager) { + docEnvMapping = new HashMap<String, String>(); + this.docManager = docManager; + } + + public HashMap<String, MathHubEnvironment> getAvailableWorkersForRoute(String docQueue) { + HashMap<String, MathHubEnvironment> environments= new HashMap<String, MathHubEnvironment>(); + if (docQueue == null) + return environments; + /* + for (IDocWorkflowInstance instance : docManager.getDocWorkflowInstances(new String[]{"lmhworker"})) { + String envID = instance.getRoute().getEnvironmentID(); + if (!environments.containsKey(envID)) + environments.put(envID, new MathHubEnvironment()); + environments.get(envID).add(new MathHubService(instance, "LMH")); + } + */ + return environments; + } + + public void connect(String docQueue, String environment) { + this.docEnvMapping.put(docQueue, environment); + } +} diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImpl.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImpl.java index fda12b09496568d04af836eca39d2142076c1ff3..a03931763f0faa386c817a2d6813c94285bfe11a 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImpl.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImpl.java @@ -1,13 +1,17 @@ package info.kwarc.sally4.mathhubworker.impl; import info.kwarc.sally4.core.CamelContextProvider; -import info.kwarc.sally4.docmanager.AlexRoute; +import info.kwarc.sally4.docmanager.DocumentManager; import info.kwarc.sally4.mathhubworker.MathHubWorkerManager; -import info.kwarc.sally4.mathhubworker.routes.MHWManagementRoute; +import info.kwarc.sally4.processors.FileServeProcessor; +import info.kwarc.sally4.servlet.utils.QueryParser; import java.util.HashMap; import org.apache.camel.CamelContext; +import org.apache.camel.Header; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.freemarker.FreemarkerComponent; import org.apache.camel.impl.DefaultCamelContext; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Instantiate; @@ -21,12 +25,17 @@ import org.slf4j.LoggerFactory; @Component @Instantiate @Provides -public class MathHubWorkerManagerImpl implements MathHubWorkerManager { +public class MathHubWorkerManagerImpl extends RouteBuilder implements MathHubWorkerManager { Logger log; @Requires CamelContextProvider camelContextProvider; + @Requires + DocumentManager docManager; + + MathHubManagerModel model; + HashMap<String, MathHubEnvironment> environments; public MathHubWorkerManagerImpl() { @@ -35,24 +44,10 @@ public class MathHubWorkerManagerImpl implements MathHubWorkerManager { } - public void getSettings() { - - } - - @Override - public void addNewWorker(final AlexRoute route) { - if (!environments.containsKey(route.getEnvironmentID())) { - MathHubEnvironment env = new MathHubEnvironment(); - env.setOnEmpty(new Runnable() { - @Override - public void run() { - environments.remove(route.getEnvironmentID()); - } - }); - environments.put(route.getEnvironmentID(), env); - } - - environments.get(route.getEnvironmentID()).addWorker(route); + public HashMap<String, Object> getSettings(@Header(QueryParser.QueryMapHeader) HashMap<String, String> query) { + HashMap<String, Object> data = new HashMap<String, Object>(); + data.put("env", model.getAvailableWorkersForRoute(query.get("id"))); + return data; } CamelContext resourceContext; @@ -60,12 +55,12 @@ public class MathHubWorkerManagerImpl implements MathHubWorkerManager { @Validate public void start() { resourceContext = new DefaultCamelContext(); + model = new MathHubManagerModel(docManager); resourceContext.addComponent("sallyservlet", camelContextProvider.getComponent("sallyservlet")); try { - resourceContext.addRoutes(new MHWManagementRoute(this)); + resourceContext.addRoutes(this); resourceContext.start(); } catch (Exception e) { - // TODO Auto-generated catch block e.printStackTrace(); } } @@ -75,8 +70,22 @@ public class MathHubWorkerManagerImpl implements MathHubWorkerManager { try { resourceContext.stop(); } catch (Exception e) { - // TODO Auto-generated catch block e.printStackTrace(); } } + + + @Override + public void configure() throws Exception { +// getContext().addComponent("freemarker", new TemplatingComponent("templates/", getClass().getClassLoader())); + getContext().addComponent("freemarker", new FreemarkerComponent()); + from("sallyservlet:///planetary/libs?matchOnUriPrefix=true") + .process(new FileServeProcessor("libs", getClass().getClassLoader() )); + + from("sallyservlet:///planetary/mhwsettings") + .process(new QueryParser()) + .bean(method(this, "getSettings")) + .to("freemarker:file:///home/costea/workspace_sally4/sally4.git/MathHubWorker/src/main/resources/templates/mhwsettings.html") + .to("mock:result"); + } } diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/PlanetaryClientWorkflow.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/PlanetaryClientWorkflow.java index 1cda804e2a376dceffc3f2c4cc167c35e40ab7d0..e1a3cf5e06845380ea2f63d6f0cad838d53b9517 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/PlanetaryClientWorkflow.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/impl/PlanetaryClientWorkflow.java @@ -58,9 +58,10 @@ public class PlanetaryClientWorkflow implements IDocWorkflow { PlanetaryClientWorkflowInstance planetaryWorkflowInstance = new PlanetaryClientWorkflowInstance( camelContextProvider.getComponent("activemq"), - route.getAlexComponent(), camelContextProvider.getComponent("planetary"), - interact); + interact, + this, + route); try { context.addRoutes(planetaryWorkflowInstance); diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/LMHWorkflowInstance.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/LMHWorkflowInstance.java index b2df397069eee8bbf42660ca2b81bfedfc3e09ac..7e0b81cfe67928a2794021e3dfbdb0024f4946e3 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/LMHWorkflowInstance.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/LMHWorkflowInstance.java @@ -3,6 +3,7 @@ package info.kwarc.sally4.mathhubworker.routes; import info.kwarc.sally.comm.mathhubworker.GetAuthKeyRequest; import info.kwarc.sally.comm.mathhubworker.GetAuthKeyResponse; import info.kwarc.sally4.docmanager.AlexRoute; +import info.kwarc.sally4.docmanager.IDocWorkflow; import info.kwarc.sally4.docmanager.IDocWorkflowInstance; import info.kwarc.sally4.marshalling.CommUtils; @@ -15,9 +16,11 @@ import org.apache.camel.spi.DataFormat; public class LMHWorkflowInstance extends RouteBuilder implements IDocWorkflowInstance { AlexRoute route; + IDocWorkflow workflow; - public LMHWorkflowInstance(AlexRoute route) { + public LMHWorkflowInstance(AlexRoute route, IDocWorkflow workflow) { this.route = route; + this.workflow = workflow; } public void setWorkerKey(GetAuthKeyResponse response) { @@ -33,18 +36,7 @@ public class LMHWorkflowInstance extends RouteBuilder implements IDocWorkflowIns from("direct:start") .to("direct:requestAuthKey"); - from("direct:requestAuthKey") - .setBody(constant(new GetAuthKeyRequest())) - .marshal(worker) - .to("log: sending to MHW") - .doTry() - .inOut("mhw:requestSession") - .doCatch(ExchangeTimedOutException.class) - .log(LoggingLevel.ERROR,"MathHubRoute","Alex did not respond to GetAuthKeyResponse. Ending this route.") - .stop() - .doFinally() - .unmarshal(worker) - .bean(method(this, "setWorkerKey")); + } @Override @@ -59,4 +51,14 @@ public class LMHWorkflowInstance extends RouteBuilder implements IDocWorkflowIns } + @Override + public IDocWorkflow getDocumentWorkflow() { + return workflow; + } + + @Override + public AlexRoute getRoute() { + return route; + } + } diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/MHWManagementRoute.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/MHWManagementRoute.java deleted file mode 100644 index 363fe340c5f77b274d4d5c08dea04a189fd93f78..0000000000000000000000000000000000000000 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/MHWManagementRoute.java +++ /dev/null @@ -1,27 +0,0 @@ -package info.kwarc.sally4.mathhubworker.routes; - -import info.kwarc.sally4.mathhubworker.impl.MathHubWorkerManagerImpl; -import info.kwarc.sally4.processors.FileServeProcessor; - -import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.component.freemarker.FreemarkerComponent; - -public class MHWManagementRoute extends RouteBuilder { - MathHubWorkerManagerImpl thisManager; - - public MHWManagementRoute(MathHubWorkerManagerImpl thisManager) { - this.thisManager = thisManager; - } - - @Override - public void configure() throws Exception { - getContext().addComponent("freemarker", new FreemarkerComponent()); - from("sallyservlet:///planetary/libs?matchOnUriPrefix=true") - .process(new FileServeProcessor("libs", getClass().getClassLoader() )); - - from("sallyservlet:///planetary/mhwsettings") - .bean(thisManager,"getSettings") - .to("freemarker:templates/mhwsettings.html"); - } - -} diff --git a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/PlanetaryClientWorkflowInstance.java b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/PlanetaryClientWorkflowInstance.java index f17dbc93c94355ed5ec58b4e7245707237528f75..276408ae1b3fc8e5ec59f37638f58fb8c698e477 100644 --- a/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/PlanetaryClientWorkflowInstance.java +++ b/MathHubWorker/src/main/java/info/kwarc/sally4/mathhubworker/routes/PlanetaryClientWorkflowInstance.java @@ -5,6 +5,7 @@ import info.kwarc.sally.comm.planetaryclient.GetSessionIDResponse; import info.kwarc.sally.comm.planetaryclient.NewService; import info.kwarc.sally4.core.SallyInteraction; import info.kwarc.sally4.docmanager.AlexRoute; +import info.kwarc.sally4.docmanager.IDocWorkflow; import info.kwarc.sally4.docmanager.IDocWorkflowInstance; import info.kwarc.sally4.marshalling.CommUtils; import info.kwarc.sally4.marshalling.MarshallUtils; @@ -29,12 +30,16 @@ public class PlanetaryClientWorkflowInstance extends RouteBuilder implements IDo Component activemqComponent; Component alexComponent; Component planetaryComponent; + IDocWorkflow workflow; + AlexRoute route; - public PlanetaryClientWorkflowInstance(Component activemqComponent, Component alexComponent, Component planetaryComponent, SallyInteraction interact) { + public PlanetaryClientWorkflowInstance(Component activemqComponent, Component planetaryComponent, SallyInteraction interact, IDocWorkflow workflow, AlexRoute route) { this.interact = interact; this.activemqComponent = activemqComponent; - this.alexComponent = alexComponent; + this.alexComponent = route.getAlexComponent(); this.planetaryComponent = planetaryComponent; + this.workflow = workflow; + this.route = route; } public String getSessionID(GetSessionIDResponse response) { @@ -149,4 +154,14 @@ public class PlanetaryClientWorkflowInstance extends RouteBuilder implements IDo } + @Override + public IDocWorkflow getDocumentWorkflow() { + return workflow; + } + + @Override + public AlexRoute getRoute() { + return route; + } + } diff --git a/MathHubWorker/src/main/resources/templates/mhwsettings.html b/MathHubWorker/src/main/resources/templates/mhwsettings.html index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..eb8b4e573d6c903d184914c8941c85186f8660b2 100644 --- a/MathHubWorker/src/main/resources/templates/mhwsettings.html +++ b/MathHubWorker/src/main/resources/templates/mhwsettings.html @@ -0,0 +1,30 @@ +<html> +<script type="text/javascript" src=""></script> +<script src='/sally/jobad/libs/js/libs.js'></script> +<link rel='stylesheet' type='text/css' href='/sally/jobad/libs/css/libs.css'> +<script src='/sally/jobad/JOBAD.min.js'></script> +<link rel='stylesheet' type='text/css' href='/sally/jobad/JOBAD.min.css'> + +<body class="bootstrap"> + +<div class="navbar navbar-inverse"> + <div class="navbar-inner"> + <a class="brand" href="#">MathHub Workers</a> + </div> +</div> + + + <#list body.env?keys as e> + <div class="row-fluid"> + <div class="span1">${e_index+1}.</div> + <div class="span11 btn"> + <#list body.env[e] as workflowInstances> + ${workflowInstances.getServiceName()} + </#list> + </div> + </div> + + </#list> + +</body> +</html> \ No newline at end of file diff --git a/MathHubWorker/src/test/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImplTest.java b/MathHubWorker/src/test/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImplTest.java new file mode 100644 index 0000000000000000000000000000000000000000..c67ae36cbb970e9a79e08bb5e2f5e4f0b1ad856a --- /dev/null +++ b/MathHubWorker/src/test/java/info/kwarc/sally4/mathhubworker/impl/MathHubWorkerManagerImplTest.java @@ -0,0 +1,62 @@ +package info.kwarc.sally4.mathhubworker.impl; + +import info.kwarc.sally4.docmanager.AlexRoute; +import info.kwarc.sally4.docmanager.impl.AlexRouteImpl; +import info.kwarc.sally4.docmanager.mocks.MockDocumentManager; +import info.kwarc.sally4.docmanager.mocks.MockGlobalContextProvider; +import info.kwarc.sally4.mathhubworker.routes.LMHWorkflowInstance; + +import org.apache.camel.CamelContext; +import org.apache.camel.EndpointInject; +import org.apache.camel.Exchange; +import org.apache.camel.ProducerTemplate; +import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.test.junit4.CamelTestSupport; +import org.junit.Test; + +public class MathHubWorkerManagerImplTest extends CamelTestSupport{ + MockDocumentManager man; + MathHubWorkerManagerImpl workerManager; + + @EndpointInject(uri="sallyservlet:///planetary/mhwsettings") + ProducerTemplate starter; + + @EndpointInject(uri="mock:result") + MockEndpoint result; + + public MathHubWorkerManagerImplTest() { + } + + @Test + public void test() throws Exception { + LMHWorkflow lmhWorkflow = new LMHWorkflow(); + + AlexRoute alexRoute = new AlexRouteImpl("lmhqueue", "e1", "u1", new String[]{"lmhworker"}); + LMHWorkflowInstance lmhInstance = new LMHWorkflowInstance(alexRoute, lmhWorkflow); + man.addWorkflowInstances(lmhInstance); + + starter.sendBody(""); + for (Exchange e: result.getExchanges()) { + System.out.println(e.getIn().getBody(String.class)); + } + } + + @Test + public void test2() throws Exception { + LMHWorkflow lmhWorkflow = new LMHWorkflow(); + AlexRoute alexRoute = new AlexRouteImpl("q1", "e1", "u1", new String[]{"lmhworker"}); + LMHWorkflowInstance lmhInstance = new LMHWorkflowInstance(alexRoute, lmhWorkflow); + man.addWorkflowInstances(lmhInstance); + starter.sendBody(""); + } + + @Override + protected CamelContext createCamelContext() throws Exception { + man = new MockDocumentManager(); + workerManager = new MathHubWorkerManagerImpl(); + workerManager.docManager = man; + workerManager.camelContextProvider = new MockGlobalContextProvider(); + workerManager.start(); + return workerManager.getContext(); + } +} diff --git a/docmanager/pom.xml b/docmanager/pom.xml index 44e46ce9a9e997ea9f4e8a2833174e57d95833ac..6cd212f447631db65bae407a8579afb8b5158131 100644 --- a/docmanager/pom.xml +++ b/docmanager/pom.xml @@ -61,6 +61,12 @@ <version>1.11.2</version> </dependency> + <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.apache.felix.ipojo</artifactId> + <version>1.11.2</version> + </dependency> + <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/DocumentManager.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/DocumentManager.java index 7353175adbcc7b1d4c838847c8f1e33b15993440..1e485415ecafb92b8f645fb6c423062e20eb800a 100644 --- a/docmanager/src/main/java/info/kwarc/sally4/docmanager/DocumentManager.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/DocumentManager.java @@ -3,5 +3,5 @@ package info.kwarc.sally4.docmanager; import info.kwarc.sally.comm.core.Registerdocument; public interface DocumentManager { - AlexRoute registerDocument(Registerdocument doc); + AlexRoute registerDocument(Registerdocument doc); } diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/IDocWorkflowInstance.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/IDocWorkflowInstance.java index 7b1afefc8db3f025b9d009fc04503c0f6bf78877..4719e4a8161b5a2516d26c86e98dd9d2cbb9d818 100644 --- a/docmanager/src/main/java/info/kwarc/sally4/docmanager/IDocWorkflowInstance.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/IDocWorkflowInstance.java @@ -4,6 +4,8 @@ import org.apache.camel.Exchange; public interface IDocWorkflowInstance { boolean handleMessage(AlexRoute route, String namespace, String type, Exchange exchange); + IDocWorkflow getDocumentWorkflow(); + AlexRoute getRoute(); void stop(); } diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/AlexRouteImpl.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/AlexRouteImpl.java index 1ff0d42636ef7c4ae40624bb9c67a84ffed4203e..9b132fb7b226181908a676c1049ea6d35e9fc5fc 100644 --- a/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/AlexRouteImpl.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/AlexRouteImpl.java @@ -15,10 +15,14 @@ import org.apache.camel.Exchange; import org.apache.camel.ExchangeTimedOutException; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.spi.DataFormat; +import org.apache.felix.ipojo.annotations.Component; +import org.apache.felix.ipojo.annotations.Provides; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Component +@Provides(specifications=AlexRoute.class) public class AlexRouteImpl extends RouteBuilder implements AlexRoute { String docQueue; diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerAdapter.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerAdapter.java index d75eec45835807e04094a68daa1daad8ba48969b..3b9c5ba211f8cd8ab42d11882335fe496d61cc33 100644 --- a/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerAdapter.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerAdapter.java @@ -17,6 +17,7 @@ import org.apache.camel.CamelContext; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.impl.DefaultCamelContext; import org.apache.camel.spi.DataFormat; +import org.apache.felix.ipojo.Factory; import org.apache.felix.ipojo.annotations.Bind; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Instantiate; @@ -110,7 +111,7 @@ public class DocumentManagerAdapter extends RouteBuilder implements DocumentMana } @Bind(aggregate=true, optional=true) - private void bindWorkflow(IDocWorkflow workflow) + public void bindWorkflow(IDocWorkflow workflow) { model.addWorkflow(workflow); } @@ -139,7 +140,7 @@ public class DocumentManagerAdapter extends RouteBuilder implements DocumentMana @Override public AlexRoute registerDocument(Registerdocument doc) { - final AlexRoute route = model.addDocument(doc.getDocumentqueue(), doc.getDocumentqueue(), doc.getUserid(), doc.getInterfaces().toArray(new String[0])); + final AlexRoute route = model.addDocument(doc.getDocumentqueue(), doc.getEnvironmentid(), doc.getUserid(), doc.getInterfaces().toArray(new String[0])); route.addOnStopHandler(new Runnable() { @Override @@ -149,5 +150,4 @@ public class DocumentManagerAdapter extends RouteBuilder implements DocumentMana }); return route; } - } diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerModel.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerModel.java index 7ef58c469a38a9f91bc6792f380e635f20f690ae..32b40c5cf3eaebc5e5199ae4156141b83b56b777 100644 --- a/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerModel.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/impl/DocumentManagerModel.java @@ -6,9 +6,11 @@ import info.kwarc.sally4.docmanager.IDocWorkflowInstance; import info.kwarc.sally4.processors.TypedCallback; import info.kwarc.sally4.processors.XMLMessageWithTypeInfo; +import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -24,7 +26,7 @@ public class DocumentManagerModel { workflowDocInstances = new HashMap<String, HashMap<IDocWorkflow,IDocWorkflowInstance>>(); } - + // N^2 algo but the strings list are small so will be faster public boolean containsAll(String[] required, String[] available) { boolean ok; @@ -36,12 +38,12 @@ public class DocumentManagerModel { break; } } - if (!ok) + if (!ok) return false; } return true; } - + public AlexRoute addDocument(String docQueue, String environment, String userid, String[] interfaces) { if (documents.containsKey(docQueue)) return documents.get(docQueue); @@ -49,13 +51,13 @@ public class DocumentManagerModel { final AlexRouteImpl route = new AlexRouteImpl(docQueue, environment, userid, interfaces); documents.put(docQueue, route); route.setMessageHandler(new TypedCallback<XMLMessageWithTypeInfo>() { - + @Override public void run(XMLMessageWithTypeInfo obj) { forwardMessage(route, obj); } }); - + HashMap<IDocWorkflow,IDocWorkflowInstance> workflowInstances = new HashMap<IDocWorkflow, IDocWorkflowInstance>(); for (IDocWorkflow workflow : workflows) { if (containsAll(workflow.getInterfaceRequirements(), interfaces)) { @@ -66,7 +68,7 @@ public class DocumentManagerModel { workflowDocInstances.put(docQueue, workflowInstances); return route; } - + public void removeDocument(String docQueue) { if (!documents.containsKey(docQueue)) return; @@ -76,31 +78,31 @@ public class DocumentManagerModel { } workflowDocInstances.remove(docQueue); } - + public void addWorkflow(IDocWorkflow workflow) { workflows.add(workflow); - + for (AlexRouteImpl route : getRoutes()) { if (containsAll(workflow.getInterfaceRequirements(), route.getInterfaces())) { workflowDocInstances.get(route.getDocQueue()).put(workflow, workflow.createDocumentInstance(route)); } } } - + public void removeWorkflow(IDocWorkflow workflow) { workflows.remove(workflow); for (AlexRouteImpl route : getRoutes()) { - final HashMap<IDocWorkflow, IDocWorkflowInstance> instanceMap = workflowDocInstances.get(route.getDocQueue()); - - IDocWorkflowInstance t = instanceMap.get(workflow); - if (t == null) - continue; - t.stop(); - instanceMap.remove(workflow); + final HashMap<IDocWorkflow, IDocWorkflowInstance> instanceMap = workflowDocInstances.get(route.getDocQueue()); + + IDocWorkflowInstance t = instanceMap.get(workflow); + if (t == null) + continue; + t.stop(); + instanceMap.remove(workflow); } } - + public void forwardMessage(AlexRoute r, XMLMessageWithTypeInfo info) { final HashMap<IDocWorkflow, IDocWorkflowInstance> workflows = workflowDocInstances.get(r.getDocQueue()); for (Entry<IDocWorkflow, IDocWorkflowInstance> work : workflows.entrySet()) { @@ -111,11 +113,30 @@ public class DocumentManagerModel { } } } - + public Collection<AlexRouteImpl> getRoutes() { return documents.values(); } - + + public Collection<IDocWorkflowInstance> getDocWorkflowInstances(String []requiredInterfaces) { + ArrayList<IDocWorkflowInstance> result = new ArrayList<IDocWorkflowInstance>(); + List<IDocWorkflow> validWorkflows = new ArrayList<IDocWorkflow>(); + for (IDocWorkflow workflow : workflows) { + if (containsAll(requiredInterfaces, workflow.getInterfaceRequirements())) { + validWorkflows.add(workflow); + } + } + + for (final HashMap<IDocWorkflow, IDocWorkflowInstance> instancesForRoute : workflowDocInstances.values()) { + for (IDocWorkflow validWorkflow : validWorkflows) { + if (instancesForRoute.containsKey(validWorkflow)) { + result.add(instancesForRoute.get(validWorkflow)); + } + } + } + return result; + } + public void stopAllRoutes() { for (String routeID : workflowDocInstances.keySet()) { for (IDocWorkflow workflow : workflowDocInstances.get(routeID).keySet()) { diff --git a/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockAbstractWorkflow.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockAbstractWorkflow.java similarity index 99% rename from docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockAbstractWorkflow.java rename to docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockAbstractWorkflow.java index a85c97ed424e5fdee7e6acfb791b7aea24751d9b..253044a12bc796fcd7afe2ef7ad771332311e3bf 100644 --- a/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockAbstractWorkflow.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockAbstractWorkflow.java @@ -4,6 +4,7 @@ import info.kwarc.sally4.docmanager.AlexRoute; import info.kwarc.sally4.docmanager.IDocWorkflow; import info.kwarc.sally4.docmanager.IDocWorkflowInstance; + public class MockAbstractWorkflow implements IDocWorkflow { String [] ifaces; String [] namespaces; diff --git a/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockCountingWorkflow.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockCountingWorkflow.java similarity index 78% rename from docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockCountingWorkflow.java rename to docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockCountingWorkflow.java index 5455b308c3a26ba95c4cae4ade4c88bf98af137f..f25eaf108197c81d2996de8268a3c8172fb3d5d1 100644 --- a/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockCountingWorkflow.java +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockCountingWorkflow.java @@ -32,8 +32,9 @@ public class MockCountingWorkflow implements IDocWorkflow { } @Override - public IDocWorkflowInstance createDocumentInstance(AlexRoute route) { + public IDocWorkflowInstance createDocumentInstance(final AlexRoute route) { instances++; + final IDocWorkflow workflow = this; return new IDocWorkflowInstance() { @Override @@ -46,6 +47,16 @@ public class MockCountingWorkflow implements IDocWorkflow { String type, Exchange exchange) { return false; } + + @Override + public IDocWorkflow getDocumentWorkflow() { + return workflow; + } + + @Override + public AlexRoute getRoute() { + return route; + } }; } diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockDirectEndpoint.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockDirectEndpoint.java new file mode 100644 index 0000000000000000000000000000000000000000..1c9e20640083dee284ab316393442604f9b37612 --- /dev/null +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockDirectEndpoint.java @@ -0,0 +1,115 @@ +package info.kwarc.sally4.docmanager.mocks; + +import java.util.Map; + +import org.apache.camel.CamelContext; +import org.apache.camel.Component; +import org.apache.camel.Consumer; +import org.apache.camel.EndpointConfiguration; +import org.apache.camel.Exchange; +import org.apache.camel.ExchangePattern; +import org.apache.camel.PollingConsumer; +import org.apache.camel.Processor; +import org.apache.camel.Producer; +import org.apache.camel.impl.DefaultEndpoint; + + +public class MockDirectEndpoint extends DefaultEndpoint{ + + public MockDirectEndpoint(String endpoint, Component component, Component toBeused) { + super(endpoint, component); + } + + @Override + public boolean isSingleton() { + return false; + } + + @Override + public void start() throws Exception { + + } + + @Override + public void stop() throws Exception { + // TODO Auto-generated method stub + + } + + @Override + public String getEndpointUri() { + // TODO Auto-generated method stub + return null; + } + + @Override + public EndpointConfiguration getEndpointConfiguration() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String getEndpointKey() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Exchange createExchange() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Exchange createExchange(ExchangePattern pattern) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Exchange createExchange(Exchange exchange) { + // TODO Auto-generated method stub + return null; + } + + @Override + public CamelContext getCamelContext() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Producer createProducer() throws Exception { + // TODO Auto-generated method stub + return null; + } + + @Override + public Consumer createConsumer(Processor processor) throws Exception { + // TODO Auto-generated method stub + return null; + } + + @Override + public PollingConsumer createPollingConsumer() throws Exception { + // TODO Auto-generated method stub + return null; + } + + @Override + public void configureProperties(Map<String, Object> options) { + // TODO Auto-generated method stub + + } + + @Override + public void setCamelContext(CamelContext context) { + + } + + @Override + public boolean isLenientProperties() { + return true; + } + +} diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockDocumentManager.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockDocumentManager.java new file mode 100644 index 0000000000000000000000000000000000000000..c082c0524f13e4d34fcd0838cf21858056333662 --- /dev/null +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockDocumentManager.java @@ -0,0 +1,28 @@ +package info.kwarc.sally4.docmanager.mocks; + +import info.kwarc.sally.comm.core.Registerdocument; +import info.kwarc.sally4.docmanager.AlexRoute; +import info.kwarc.sally4.docmanager.DocumentManager; +import info.kwarc.sally4.docmanager.IDocWorkflowInstance; + +import java.util.ArrayList; +import java.util.List; + +public class MockDocumentManager implements DocumentManager { + + @Override + public AlexRoute registerDocument(Registerdocument doc) { + return null; + } + + public MockDocumentManager() { + instances = new ArrayList<IDocWorkflowInstance>(); + } + + List<IDocWorkflowInstance> instances; + + public void addWorkflowInstances(IDocWorkflowInstance wi) { + instances.add(wi); + } + +} diff --git a/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockGlobalContextProvider.java b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockGlobalContextProvider.java new file mode 100644 index 0000000000000000000000000000000000000000..d9e9df47f937ed8f654cdd7e7274a317adda8942 --- /dev/null +++ b/docmanager/src/main/java/info/kwarc/sally4/docmanager/mocks/MockGlobalContextProvider.java @@ -0,0 +1,69 @@ +package info.kwarc.sally4.docmanager.mocks; + +import info.kwarc.sally4.core.CamelContextProvider; + +import java.util.Map; + +import org.apache.camel.Component; +import org.apache.camel.Consumer; +import org.apache.camel.Endpoint; +import org.apache.camel.Processor; +import org.apache.camel.Producer; +import org.apache.camel.impl.DefaultComponent; +import org.apache.camel.impl.DefaultEndpoint; + +public class MockGlobalContextProvider implements CamelContextProvider { + + @Override + public Component getComponent(String componentName) { + return new DefaultComponent() { + + @Override + protected Endpoint createEndpoint(String uri, String remaining, + Map<String, Object> parameters) throws Exception { + + final Endpoint producer = getCamelContext().getEndpoint("direct:"+remaining); + return new DefaultEndpoint(remaining, this) { + + @Override + public boolean isLenientProperties() { + return true; + } + + @Override + public boolean isSingleton() { + return false; + } + + @Override + public Producer createProducer() throws Exception { + return producer.createProducer(); + } + + @Override + public Consumer createConsumer(Processor processor) throws Exception { + return producer.createConsumer(processor); + } + }; + } + }; + } + + @Override + public void registerGlobalComponent(String componentName, + Component component) { + + } + + @Override + public void unregisterGlobalComponent(String componentName) { + // TODO Auto-generated method stub + + } + + @Override + public String getName() { + return "mockery"; + } + +} diff --git a/docmanager/src/main/resources/templates/test.html b/docmanager/src/main/resources/templates/test.html index 7aae485c80c5adb707456880417421c1f88ef0ef..6570769d9bb0b0e9c576048ce7f84c9fb5ff7df9 100644 --- a/docmanager/src/main/resources/templates/test.html +++ b/docmanager/src/main/resources/templates/test.html @@ -9,7 +9,7 @@ List of Alexes <#list body.routes as route> <tr> <td> - ${route.getAlexQueue()} + ${route.getDocQueue()} </td> <td> <#list route.getInterfaces() as iface> diff --git a/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockGlobalContextProvider.java b/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockGlobalContextProvider.java deleted file mode 100644 index c2b3362213f533c2f5a7a8248e475f9b1562f3dd..0000000000000000000000000000000000000000 --- a/docmanager/src/test/java/info/kwarc/sally4/docmanager/mocks/MockGlobalContextProvider.java +++ /dev/null @@ -1,32 +0,0 @@ -package info.kwarc.sally4.docmanager.mocks; - -import info.kwarc.sally4.core.CamelContextProvider; - -import org.apache.camel.Component; -import org.apache.camel.component.direct.DirectComponent; - -public class MockGlobalContextProvider implements CamelContextProvider { - - @Override - public Component getComponent(String componentName) { - return new DirectComponent(); - } - - @Override - public void registerGlobalComponent(String componentName, - Component component) { - - } - - @Override - public void unregisterGlobalComponent(String componentName) { - // TODO Auto-generated method stub - - } - - @Override - public String getName() { - return "mockery"; - } - -} diff --git a/servlet/pom.xml b/servlet/pom.xml index e14766bface298a8b76d7518fea0f7f9751e6ad7..3e605bc812dcf4cc19f048c96bfb1abc5c24b77f 100644 --- a/servlet/pom.xml +++ b/servlet/pom.xml @@ -61,7 +61,6 @@ <version>2.5</version> <scope>compile</scope> </dependency> - <dependency> <groupId>org.apache.felix</groupId> diff --git a/servlet/src/main/java/info/kwarc/sally4/servlet/impl/ServletImpl.java b/servlet/src/main/java/info/kwarc/sally4/servlet/impl/ServletImpl.java index a9fab6c4f7166b29552237b1f5ef8e90f5ef423c..36c3ef4e1cd35e94734cfff45d56feb0c88582ca 100644 --- a/servlet/src/main/java/info/kwarc/sally4/servlet/impl/ServletImpl.java +++ b/servlet/src/main/java/info/kwarc/sally4/servlet/impl/ServletImpl.java @@ -31,6 +31,7 @@ public class ServletImpl implements SallyServlet { public void start() throws ServletException, NamespaceException { CamelHttpTransportServlet srvlet = new CamelHttpTransportServlet(); httpSevlet.registerServlet("/sally", srvlet, null, null); + httpSevlet.registerResources("/sally/jobad", "/app/jobad", null); ServletComponent servletComponent = new ServletComponent(); servletComponent.setServletName(srvlet.getServletName()); camelContextProvider.registerGlobalComponent("sallyservlet", servletComponent); diff --git a/servlet/src/main/java/info/kwarc/sally4/servlet/utils/QueryParser.java b/servlet/src/main/java/info/kwarc/sally4/servlet/utils/QueryParser.java new file mode 100644 index 0000000000000000000000000000000000000000..750528b875d7a8c3625842d8be6cd804ff646095 --- /dev/null +++ b/servlet/src/main/java/info/kwarc/sally4/servlet/utils/QueryParser.java @@ -0,0 +1,28 @@ +package info.kwarc.sally4.servlet.utils; + +import java.util.HashMap; +import java.util.List; + +import org.apache.camel.Exchange; +import org.apache.camel.Processor; +import org.apache.commons.httpclient.NameValuePair; +import org.apache.commons.httpclient.util.ParameterParser; + + +public class QueryParser implements Processor{ + final public static String QueryMapHeader = "QueryParamMap"; + ParameterParser parser ; + + public QueryParser() { + this.parser = new ParameterParser(); + } + + @Override + public void process(Exchange exchange) throws Exception { + HashMap<String, String> result = new HashMap<String, String>(); + for (NameValuePair pairs : (List<NameValuePair>) parser.parse(exchange.getIn().getHeader(Exchange.HTTP_QUERY, String.class), '&')) { + result.put(pairs.getName(), pairs.getValue()); + } + exchange.getIn().setHeader(QueryMapHeader, result); + } +} diff --git a/servlet/src/main/resources/app/index.html b/servlet/src/main/resources/app/index.html new file mode 100644 index 0000000000000000000000000000000000000000..0e1c62595ea6f024109351c5632da5c4bd788656 --- /dev/null +++ b/servlet/src/main/resources/app/index.html @@ -0,0 +1 @@ +<h1>Welcome to SAlly4</h1> \ No newline at end of file diff --git a/servlet/src/main/resources/app/jobad/JOBAD.css b/servlet/src/main/resources/app/jobad/JOBAD.css new file mode 100644 index 0000000000000000000000000000000000000000..c31ca3cccc5b07c331cea296b6a48d0a82868932 --- /dev/null +++ b/servlet/src/main/resources/app/jobad/JOBAD.css @@ -0,0 +1,486 @@ +/* + JOBAD CSS File + built: Fri, 22 Nov 2013 11:51:43 +0100 + + Contains all JOBAD related CSS data + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. + +*/ +/* start <JOBAD.css> */ +/* + JOBAD.css + Contains JOBAD Core CSS Data + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. + +*/ +/* + JOBAD Hover +*/ +.JOBAD.JOBAD_Hover { + position: fixed; + z-index: 101; +} +/* + JOBAD ContextMenu +*/ +.JOBAD.JOBAD_Contextmenu { + /* nothing here */ + +} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem { + position: fixed; + overflow: hidden; +} +.JOBAD.JOBAD_InlineIcon { + position: static; + float: left; +} +/* + JOBAD Sidebar +*/ +/* Sidebar groups */ +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Group, +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Single { + position: absolute; + right: 0px; +} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Group, +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Single { + position: absolute; + left: 0px; +} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_group_element, +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_group_element { + position: relative; +} +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Wrapper { + /* wraps the element that has a sidebar */ + + width: 100%; + float: left; +} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Wrapper { + /* wraps the element that has a sidebar */ + + width: 100%; + float: right; +} +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Container { + /* Contains all sidebar elements */ + + height: 1px; + /* something positive */ + + position: relative; + float: right; +} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Container { + /* Contains all sidebar elements */ + + height: 1px; + /* something positive */ + + position: relative; + float: left; +} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Notification, +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Notification { + /* Sidebar Notifications */ + + -webkit-border-radius: 5; + -moz-border-radius: 5; + border-radius: 5; +} +.JOBAD.JOBAD_Sidebar.JOBAD_Sidebar_Hover { + position: fixed; + -webkit-border-radius: 5; + -moz-border-radius: 5; + border-radius: 5; +} +/* + JOBAD Folding +*/ +/* JOBAD Folding */ +.JOBAD.JOBAD_Folding_left, +.JOBAD.JOBAD_Folding_right { + /* applied to all sidebar elements (including parent) */ + +} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Wrapper { + /* wraps the element that has a sidebar */ + + width: 100%; + float: left; + margin-top: 2px; +} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Wrapper { + /* wraps the element that has a sidebar */ + + width: 100%; + float: right; + margin-bottom: 2px; + display: inline; +} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container { + /* Folding bracket Right */ + + position: relative; + float: right; + margin-left: 5px; +} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container { + /* Folding bracket Left */ + + position: relative; + float: left; + margin-right: 5px; +} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Spacing, +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Spacing { + /* add some spacing after me */ + + width: 1px; + height: 1px; + overflow: hidden; + display: block; +} +.modal.large { + width: 80%; + /* respsonsive width */ + + margin-left: -40%; + /* width/2) */ + +} +.wide { + width: 150px !important; +} +/* end <JOBAD.css> */ +/* start <JOBAD.theme.css> */ +/* + JOBAD.theme.css + Contains JOBAD CSS Theme + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. + +*/ +.JOBAD { + /* applied to all JOBAD related elements */ + +} +/* inline icon */ +.JOBAD.JOBAD_InlineIcon { + background-size: 18px 18px; + width: 18px; + height: 18px; +} +/* + HoverText +*/ +.JOBAD.JOBAD_Hover { + /* Style for JOBAD Hover Texts */ + + background-color: #ffffca; + -webkit-border-radius: 5; + -moz-border-radius: 5; + border-radius: 5; + border: 1px solid #000023; +} +/* + JOBAD ContextMenu +*/ +.JOBAD.JOBAD_Contextmenu { + /* applied to the context menu */ + +} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem { + /* a radial context menu item */ + +} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem:hover { + /* a radial context menu item */ + + -webkit-border-radius: 20px; + -moz-border-radius: 20px; + border-radius: 20px; + border: 1px solid black; +} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem.JOBAD_ContextMenu_Radial_Disabled { + -webkit-filter: grayscale(100%); + /* we are disabled */ + +} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem.JOBAD_ContextMenu_Radial_Disabled:hover { + border: 0px; +} +/* + JOBAD Sidebar +*/ +.JOBAD.JOBAD_Sidebar_left, +.JOBAD.JOBAD_Sidebar_right { + /* applied to all sidebar elements */ + +} +.JOBAD.JOBAD_Sidebar.JOBAD_Sidebar_Hover { + /* applied to JOBAD Sidebar Hover Tooltips. */ + +} +/* The following are sidebar notification type tooltips */ +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_info { + /* Information */ + + background-color: #0033FF; + border: 1px solid #0000FF; +} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_warning { + /* Warning */ + + background-color: #FFFF00; + border: 1px solid #FFAA00; +} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_error { + /* Error */ + background-color: red; + border: 1px solid red; +} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_none { + background-color: #696969; + border: 1px solid #000000; +} +/* + JOBAD Folding +*/ +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_folded, +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_unfolded, +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_folded, +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_unfolded { + width: 3px; + box-sizing: border-box; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + border-top: 1px solid black; + border-bottom: 1px solid black; +} +/* on hover */ +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_folded:hover, +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_unfolded:hover, +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_folded:hover, +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_unfolded:hover { + background-color: #C0C0C0; +} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_folded { + /* Right Folding Bracket */ + + border-right: 1px solid black; +} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_folded { + /* Left Folding Bracket */ + + border-left: 1px solid black; +} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_unfolded { + /* Right Folding Bracket */ + + border-right: 1px solid gray; + border-top: 1px solid gray; + border-bottom: 1px solid gray; +} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_unfolded { + /* Left Folding Bracket */ + + border-left: 1px solid gray; + border-top: 1px solid gray; + border-bottom: 1px solid gray; +} +/* + JOBAD Config UI +*/ +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_tablemain { + /* Main Table of the confg UI */ + + font-size: 150%; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_infobox { + /* Config UI Infobox */ + + vertical-align: top; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_subtabs { + /* Tabs in the boxes */ + + font-size: 70%; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_ModEntry { + /* Module entries */ + + vertical-align: top; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_ModEntry td { + border-top: 1px solid black; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_MetaConfigTitle { + /* Title of module in about box */ + + font-weight: bold; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_MetaConfigDesc { + /* Description of module in about box */ + + font-style: italic; + margin-left: 20px; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_validateFail { + /* Validation FAIL */ + + background-color: red; +} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_validateOK { + /* Validatvion OK */ + + background-color: #FFFFD0; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Body { + margin: auto; +} +/* + JOBAD Repo +*/ +.JOBAD.JOBAD_Repo.JOBAD_Repo_MsgBox { + /* The message box */ + + position: fixed; + top: 20px; + left: 50%; + margin-left: -200px; + width: 400px; + height: 20px; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Title { + /* Repository title */ + + text-align: center; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Desc { + /* Respoitory description */ + + text-align: center; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table { + border-collapse: collapse; + width: 100%; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table th, +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table td { + /* Module Table Borders */ + + border: 1px solid gray; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table th { + /* Table Head */ + + font-weight: bold; + border-bottom: 3px solid black; +} +/* Not available text */ +.JOBAD.JOBAD_Repo.JOBAD_Repo_NA:before { + content: "n/a"; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_NA { + color: gray; +} +/* Dependencies */ +.JOBAD.JOBAD_Repo.JOBAD_Repo_Dependency { + color: black; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Dependency.JOBAD_Repo_Dependency_Found:hover { + /* Found */ + + color: green; +} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Dependency.JOBAD_Repo_Dependency_NotFound:hover { + /* Not Found */ + + color: red; +} +/* + Sorting +*/ +/* ascending */ +.JOBAD.JOBAD_Repo.JOBAD_Sort_Ascend:before { + content: "+"; +} +/* descending */ +.JOBAD.JOBAD_Repo.JOBAD_Sort_Descend:before { + content: "-"; +} +.JOBAD.JOBAD_Repo.JOBAD_Sort_Ascend, +.JOBAD.JOBAD_Repo.JOBAD_Sort_Descend { + color: gray; +} +/* + JOBAD jQuery UI CSS compatibility fixes +*/ +/* Progress Bar */ +.ui-progressbar { + position: relative; +} +.progress-label { + position: absolute; + width: 400px; + text-align: center; + top: 4px; + font-weight: bold; + text-shadow: 1px 1px 0 #fff; +} +/* fix for bad size */ +.ui-widget { + font-size: 70%; +} +/* end <JOBAD.theme.css> */ diff --git a/servlet/src/main/resources/app/jobad/JOBAD.js b/servlet/src/main/resources/app/jobad/JOBAD.js new file mode 100644 index 0000000000000000000000000000000000000000..0a4ded6343cf03bf6452f86057e677427844af18 --- /dev/null +++ b/servlet/src/main/resources/app/jobad/JOBAD.js @@ -0,0 +1,8952 @@ +/* + JOBAD v3 + Development version + built: Fri, 22 Nov 2013 11:51:42 +0100 + + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +var JOBAD = (function(){ +/* start <core/JOBAD.core.js> */ +/* + JOBAD 3 Core + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +/* + JOBAD 3 Main Function + Creates a new JOBAD instance on a specefied DOM element. + @param element Element to link this element to. May be a DOM Element or a jQuery Object. + @param config Configuration for this JOBAD Instance. + +*/ +var JOBAD = function(element){ + + //create new instance of JOBAD + if(!(this instanceof JOBAD)){ + return new JOBAD(element); + } + + var me = this; + + this.ID = JOBAD.util.UID(); //assign an id to this JOBAD + + //Add init arguments + this.args = []; + for(var i=0;i<arguments.length;i++){ + this.args.push(arguments[i]); + } + + //The element the current JOBAD instance works on. + this.element = JOBAD.refs.$(element); + + if(this.element.length == 0){ + JOBAD.error("Can't create JOBADInstance: Element Collection seems to be empty. "); + return; + } + + if(this.element.length > 1){ + JOBAD.console.warn("Warning: More than one element specefied for JOBADInstance. This may cause problems with some modules. "); + } + + if(JOBAD.util.isMarkedHidden(element)){ + JOBAD.error("Can't create JOBADInstance: Element marked as hidden. "); + return; + } + + /* + Checks if this JOBAD Instance contains an element. + @param el Element to check. + */ + this.contains = function(el){ + return JOBAD.util.containsAll(me.element, el, true); + } + + //IFace extensions + for(var i=0; i < JOBAD.ifaces.length; i++){ + var mod = JOBAD.ifaces[i]; + if(typeof mod == 'function'){ + mod.call(this, this, this.args); + } + } +}; + + + +JOBAD.ifaces = []; //JOBAD interfaces + +/* JOBAD Version */ +JOBAD.version = "3.2.1"; + +/* + JOBAD.toString +*/ +JOBAD.toString = function(){ + return "function(/* JOBAD "+JOBAD.version+" */){ [non-native non-trivial code] }"; +}; + +JOBAD.toString.toString = JOBAD.toString; //self-reference! + +/* JOBAD Global config */ +JOBAD.config = +{ + 'debug': true, //Debugging enabled? (Logs etc) + 'BootstrapScope': undefined //Scope for Bootstrap CSS +}; + +/* + JOBAD.console: Mimics or wraps the native console object if available and debugging is enabled. +*/ +if(typeof console != "undefined"){//Console available + + JOBAD.console = + { + "log": function(msg){ + if(JOBAD.config.debug){ + console.log(msg); + } + }, + "warn": function(msg){ + if(JOBAD.config.debug){ + console.warn(msg); + } + }, + "error": function(msg){ + if(JOBAD.config.debug){ + console.error(msg); + } + } + } +} else { + JOBAD.console = + { + "log": function(){}, + "warn": function(){}, + "error": function(){} + } +} + + +/* + JOBAD.error: Produces an error message +*/ +JOBAD.error = function(msg){ + JOBAD.console.error(msg); + throw new Error(msg); +} + +/* + JOBAD Dependencies namespace. +*/ +JOBAD.refs = {}; +JOBAD.refs.$ = jQuery; + +JOBAD.noConflict = function(){ + JOBAD.refs.$ = JOBAD.refs.$.noConflict(); + return JOBAD.refs.$; +}; //No conflict mode +/* end <core/JOBAD.core.js> */ +/* start <bundled/jquery-color/jquery.color.plus-names-2.1.2.js> */ +/*! + * jQuery Color Animations v2.1.2 + * https://github.com/jquery/jquery-color + * + * Copyright 2013 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * Date: Wed Jan 16 08:47:09 2013 -0600 + */ +(function( jQuery, undefined ) { + + var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", + + // plusequals test for += 100 -= 100 + rplusequals = /^([\-+])=\s*(\d+\.?\d*)/, + // a set of RE's that can match strings and generate color tuples. + stringParsers = [{ + re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function( execResult ) { + return [ + execResult[ 1 ], + execResult[ 2 ], + execResult[ 3 ], + execResult[ 4 ] + ]; + } + }, { + re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function( execResult ) { + return [ + execResult[ 1 ] * 2.55, + execResult[ 2 ] * 2.55, + execResult[ 3 ] * 2.55, + execResult[ 4 ] + ]; + } + }, { + // this regex ignores A-F because it's compared against an already lowercased string + re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, + parse: function( execResult ) { + return [ + parseInt( execResult[ 1 ], 16 ), + parseInt( execResult[ 2 ], 16 ), + parseInt( execResult[ 3 ], 16 ) + ]; + } + }, { + // this regex ignores A-F because it's compared against an already lowercased string + re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, + parse: function( execResult ) { + return [ + parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ), + parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ), + parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ) + ]; + } + }, { + re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + space: "hsla", + parse: function( execResult ) { + return [ + execResult[ 1 ], + execResult[ 2 ] / 100, + execResult[ 3 ] / 100, + execResult[ 4 ] + ]; + } + }], + + // jQuery.Color( ) + color = jQuery.Color = function( color, green, blue, alpha ) { + return new jQuery.Color.fn.parse( color, green, blue, alpha ); + }, + spaces = { + rgba: { + props: { + red: { + idx: 0, + type: "byte" + }, + green: { + idx: 1, + type: "byte" + }, + blue: { + idx: 2, + type: "byte" + } + } + }, + + hsla: { + props: { + hue: { + idx: 0, + type: "degrees" + }, + saturation: { + idx: 1, + type: "percent" + }, + lightness: { + idx: 2, + type: "percent" + } + } + } + }, + propTypes = { + "byte": { + floor: true, + max: 255 + }, + "percent": { + max: 1 + }, + "degrees": { + mod: 360, + floor: true + } + }, + support = color.support = {}, + + // element for support tests + supportElem = jQuery( "<p>" )[ 0 ], + + // colors = jQuery.Color.names + colors, + + // local aliases of functions called often + each = jQuery.each; + +// determine rgba support immediately +supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; +support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; + +// define cache name and alpha properties +// for rgba and hsla spaces +each( spaces, function( spaceName, space ) { + space.cache = "_" + spaceName; + space.props.alpha = { + idx: 3, + type: "percent", + def: 1 + }; +}); + +function clamp( value, prop, allowEmpty ) { + var type = propTypes[ prop.type ] || {}; + + if ( value == null ) { + return (allowEmpty || !prop.def) ? null : prop.def; + } + + // ~~ is an short way of doing floor for positive numbers + value = type.floor ? ~~value : parseFloat( value ); + + // IE will pass in empty strings as value for alpha, + // which will hit this case + if ( isNaN( value ) ) { + return prop.def; + } + + if ( type.mod ) { + // we add mod before modding to make sure that negatives values + // get converted properly: -10 -> 350 + return (value + type.mod) % type.mod; + } + + // for now all property types without mod have min and max + return 0 > value ? 0 : type.max < value ? type.max : value; +} + +function stringParse( string ) { + var inst = color(), + rgba = inst._rgba = []; + + string = string.toLowerCase(); + + each( stringParsers, function( i, parser ) { + var parsed, + match = parser.re.exec( string ), + values = match && parser.parse( match ), + spaceName = parser.space || "rgba"; + + if ( values ) { + parsed = inst[ spaceName ]( values ); + + // if this was an rgba parse the assignment might happen twice + // oh well.... + inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ]; + rgba = inst._rgba = parsed._rgba; + + // exit each( stringParsers ) here because we matched + return false; + } + }); + + // Found a stringParser that handled it + if ( rgba.length ) { + + // if this came from a parsed string, force "transparent" when alpha is 0 + // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0) + if ( rgba.join() === "0,0,0,0" ) { + jQuery.extend( rgba, colors.transparent ); + } + return inst; + } + + // named colors + return colors[ string ]; +} + +color.fn = jQuery.extend( color.prototype, { + parse: function( red, green, blue, alpha ) { + if ( red === undefined ) { + this._rgba = [ null, null, null, null ]; + return this; + } + if ( red.jquery || red.nodeType ) { + red = jQuery( red ).css( green ); + green = undefined; + } + + var inst = this, + type = jQuery.type( red ), + rgba = this._rgba = []; + + // more than 1 argument specified - assume ( red, green, blue, alpha ) + if ( green !== undefined ) { + red = [ red, green, blue, alpha ]; + type = "array"; + } + + if ( type === "string" ) { + return this.parse( stringParse( red ) || colors._default ); + } + + if ( type === "array" ) { + each( spaces.rgba.props, function( key, prop ) { + rgba[ prop.idx ] = clamp( red[ prop.idx ], prop ); + }); + return this; + } + + if ( type === "object" ) { + if ( red instanceof color ) { + each( spaces, function( spaceName, space ) { + if ( red[ space.cache ] ) { + inst[ space.cache ] = red[ space.cache ].slice(); + } + }); + } else { + each( spaces, function( spaceName, space ) { + var cache = space.cache; + each( space.props, function( key, prop ) { + + // if the cache doesn't exist, and we know how to convert + if ( !inst[ cache ] && space.to ) { + + // if the value was null, we don't need to copy it + // if the key was alpha, we don't need to copy it either + if ( key === "alpha" || red[ key ] == null ) { + return; + } + inst[ cache ] = space.to( inst._rgba ); + } + + // this is the only case where we allow nulls for ALL properties. + // call clamp with alwaysAllowEmpty + inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true ); + }); + + // everything defined but alpha? + if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { + // use the default of 1 + inst[ cache ][ 3 ] = 1; + if ( space.from ) { + inst._rgba = space.from( inst[ cache ] ); + } + } + }); + } + return this; + } + }, + is: function( compare ) { + var is = color( compare ), + same = true, + inst = this; + + each( spaces, function( _, space ) { + var localCache, + isCache = is[ space.cache ]; + if (isCache) { + localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || []; + each( space.props, function( _, prop ) { + if ( isCache[ prop.idx ] != null ) { + same = ( isCache[ prop.idx ] === localCache[ prop.idx ] ); + return same; + } + }); + } + return same; + }); + return same; + }, + _space: function() { + var used = [], + inst = this; + each( spaces, function( spaceName, space ) { + if ( inst[ space.cache ] ) { + used.push( spaceName ); + } + }); + return used.pop(); + }, + transition: function( other, distance ) { + var end = color( other ), + spaceName = end._space(), + space = spaces[ spaceName ], + startColor = this.alpha() === 0 ? color( "transparent" ) : this, + start = startColor[ space.cache ] || space.to( startColor._rgba ), + result = start.slice(); + + end = end[ space.cache ]; + each( space.props, function( key, prop ) { + var index = prop.idx, + startValue = start[ index ], + endValue = end[ index ], + type = propTypes[ prop.type ] || {}; + + // if null, don't override start value + if ( endValue === null ) { + return; + } + // if null - use end + if ( startValue === null ) { + result[ index ] = endValue; + } else { + if ( type.mod ) { + if ( endValue - startValue > type.mod / 2 ) { + startValue += type.mod; + } else if ( startValue - endValue > type.mod / 2 ) { + startValue -= type.mod; + } + } + result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop ); + } + }); + return this[ spaceName ]( result ); + }, + blend: function( opaque ) { + // if we are already opaque - return ourself + if ( this._rgba[ 3 ] === 1 ) { + return this; + } + + var rgb = this._rgba.slice(), + a = rgb.pop(), + blend = color( opaque )._rgba; + + return color( jQuery.map( rgb, function( v, i ) { + return ( 1 - a ) * blend[ i ] + a * v; + })); + }, + toRgbaString: function() { + var prefix = "rgba(", + rgba = jQuery.map( this._rgba, function( v, i ) { + return v == null ? ( i > 2 ? 1 : 0 ) : v; + }); + + if ( rgba[ 3 ] === 1 ) { + rgba.pop(); + prefix = "rgb("; + } + + return prefix + rgba.join() + ")"; + }, + toHslaString: function() { + var prefix = "hsla(", + hsla = jQuery.map( this.hsla(), function( v, i ) { + if ( v == null ) { + v = i > 2 ? 1 : 0; + } + + // catch 1 and 2 + if ( i && i < 3 ) { + v = Math.round( v * 100 ) + "%"; + } + return v; + }); + + if ( hsla[ 3 ] === 1 ) { + hsla.pop(); + prefix = "hsl("; + } + return prefix + hsla.join() + ")"; + }, + toHexString: function( includeAlpha ) { + var rgba = this._rgba.slice(), + alpha = rgba.pop(); + + if ( includeAlpha ) { + rgba.push( ~~( alpha * 255 ) ); + } + + return "#" + jQuery.map( rgba, function( v ) { + + // default to 0 when nulls exist + v = ( v || 0 ).toString( 16 ); + return v.length === 1 ? "0" + v : v; + }).join(""); + }, + toString: function() { + return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString(); + } +}); +color.fn.parse.prototype = color.fn; + +// hsla conversions adapted from: +// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021 + +function hue2rgb( p, q, h ) { + h = ( h + 1 ) % 1; + if ( h * 6 < 1 ) { + return p + (q - p) * h * 6; + } + if ( h * 2 < 1) { + return q; + } + if ( h * 3 < 2 ) { + return p + (q - p) * ((2/3) - h) * 6; + } + return p; +} + +spaces.hsla.to = function ( rgba ) { + if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) { + return [ null, null, null, rgba[ 3 ] ]; + } + var r = rgba[ 0 ] / 255, + g = rgba[ 1 ] / 255, + b = rgba[ 2 ] / 255, + a = rgba[ 3 ], + max = Math.max( r, g, b ), + min = Math.min( r, g, b ), + diff = max - min, + add = max + min, + l = add * 0.5, + h, s; + + if ( min === max ) { + h = 0; + } else if ( r === max ) { + h = ( 60 * ( g - b ) / diff ) + 360; + } else if ( g === max ) { + h = ( 60 * ( b - r ) / diff ) + 120; + } else { + h = ( 60 * ( r - g ) / diff ) + 240; + } + + // chroma (diff) == 0 means greyscale which, by definition, saturation = 0% + // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add) + if ( diff === 0 ) { + s = 0; + } else if ( l <= 0.5 ) { + s = diff / add; + } else { + s = diff / ( 2 - add ); + } + return [ Math.round(h) % 360, s, l, a == null ? 1 : a ]; +}; + +spaces.hsla.from = function ( hsla ) { + if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) { + return [ null, null, null, hsla[ 3 ] ]; + } + var h = hsla[ 0 ] / 360, + s = hsla[ 1 ], + l = hsla[ 2 ], + a = hsla[ 3 ], + q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s, + p = 2 * l - q; + + return [ + Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ), + Math.round( hue2rgb( p, q, h ) * 255 ), + Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ), + a + ]; +}; + + +each( spaces, function( spaceName, space ) { + var props = space.props, + cache = space.cache, + to = space.to, + from = space.from; + + // makes rgba() and hsla() + color.fn[ spaceName ] = function( value ) { + + // generate a cache for this space if it doesn't exist + if ( to && !this[ cache ] ) { + this[ cache ] = to( this._rgba ); + } + if ( value === undefined ) { + return this[ cache ].slice(); + } + + var ret, + type = jQuery.type( value ), + arr = ( type === "array" || type === "object" ) ? value : arguments, + local = this[ cache ].slice(); + + each( props, function( key, prop ) { + var val = arr[ type === "object" ? key : prop.idx ]; + if ( val == null ) { + val = local[ prop.idx ]; + } + local[ prop.idx ] = clamp( val, prop ); + }); + + if ( from ) { + ret = color( from( local ) ); + ret[ cache ] = local; + return ret; + } else { + return color( local ); + } + }; + + // makes red() green() blue() alpha() hue() saturation() lightness() + each( props, function( key, prop ) { + // alpha is included in more than one space + if ( color.fn[ key ] ) { + return; + } + color.fn[ key ] = function( value ) { + var vtype = jQuery.type( value ), + fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ), + local = this[ fn ](), + cur = local[ prop.idx ], + match; + + if ( vtype === "undefined" ) { + return cur; + } + + if ( vtype === "function" ) { + value = value.call( this, cur ); + vtype = jQuery.type( value ); + } + if ( value == null && prop.empty ) { + return this; + } + if ( vtype === "string" ) { + match = rplusequals.exec( value ); + if ( match ) { + value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 ); + } + } + local[ prop.idx ] = value; + return this[ fn ]( local ); + }; + }); +}); + +// add cssHook and .fx.step function for each named hook. +// accept a space separated string of properties +color.hook = function( hook ) { + var hooks = hook.split( " " ); + each( hooks, function( i, hook ) { + jQuery.cssHooks[ hook ] = { + set: function( elem, value ) { + var parsed, curElem, + backgroundColor = ""; + + if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) { + value = color( parsed || value ); + if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { + curElem = hook === "backgroundColor" ? elem.parentNode : elem; + while ( + (backgroundColor === "" || backgroundColor === "transparent") && + curElem && curElem.style + ) { + try { + backgroundColor = jQuery.css( curElem, "backgroundColor" ); + curElem = curElem.parentNode; + } catch ( e ) { + } + } + + value = value.blend( backgroundColor && backgroundColor !== "transparent" ? + backgroundColor : + "_default" ); + } + + value = value.toRgbaString(); + } + try { + elem.style[ hook ] = value; + } catch( e ) { + // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit' + } + } + }; + jQuery.fx.step[ hook ] = function( fx ) { + if ( !fx.colorInit ) { + fx.start = color( fx.elem, hook ); + fx.end = color( fx.end ); + fx.colorInit = true; + } + jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) ); + }; + }); + +}; + +color.hook( stepHooks ); + +jQuery.cssHooks.borderColor = { + expand: function( value ) { + var expanded = {}; + + each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) { + expanded[ "border" + part + "Color" ] = value; + }); + return expanded; + } +}; + +// Basic color names only. +// Usage of any of the other color names requires adding yourself or including +// jquery.color.svg-names.js. +colors = jQuery.Color.names = { + // 4.1. Basic color keywords + aqua: "#00ffff", + black: "#000000", + blue: "#0000ff", + fuchsia: "#ff00ff", + gray: "#808080", + green: "#008000", + lime: "#00ff00", + maroon: "#800000", + navy: "#000080", + olive: "#808000", + purple: "#800080", + red: "#ff0000", + silver: "#c0c0c0", + teal: "#008080", + white: "#ffffff", + yellow: "#ffff00", + + // 4.2.3. "transparent" color keyword + transparent: [ null, null, null, 0 ], + + _default: "#ffffff" +}; + +})( jQuery ); + +/*! + * jQuery Color Animations v2.1.2 - SVG Color Names + * https://github.com/jquery/jquery-color + * + * Remaining HTML/CSS color names per W3C's CSS Color Module Level 3. + * http://www.w3.org/TR/css3-color/#svg-color + * + * Copyright 2013 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * Date: Wed Jan 16 08:47:09 2013 -0600 + */ +jQuery.extend( jQuery.Color.names, { + // 4.3. Extended color keywords (minus the basic ones in core color plugin) + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + blanchedalmond: "#ffebcd", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#00ffff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + gold: "#ffd700", + goldenrod: "#daa520", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavender: "#e6e6fa", + lavenderblush: "#fff0f5", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#778899", + lightslategrey: "#778899", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + limegreen: "#32cd32", + linen: "#faf0e6", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + oldlace: "#fdf5e6", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + whitesmoke: "#f5f5f5", + yellowgreen: "#9acd32" +}); +/* end <bundled/jquery-color/jquery.color.plus-names-2.1.2.js> */ +/* start <bundled/underscore/underscore.js> */ +// Underscore.js 1.5.1 +// http://underscorejs.org +// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +// Underscore may be freely distributed under the MIT license. + +(function() { + + // Baseline setup + // -------------- + + // Establish the root object, `window` in the browser, or `global` on the server. + var root = this; + + // Save the previous value of the `_` variable. + var previousUnderscore = root._; + + // Establish the object that gets returned to break out of a loop iteration. + var breaker = {}; + + // Save bytes in the minified (but not gzipped) version: + var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype; + + // Create quick reference variables for speed access to core prototypes. + var + push = ArrayProto.push, + slice = ArrayProto.slice, + concat = ArrayProto.concat, + toString = ObjProto.toString, + hasOwnProperty = ObjProto.hasOwnProperty; + + // All **ECMAScript 5** native function implementations that we hope to use + // are declared here. + var + nativeForEach = ArrayProto.forEach, + nativeMap = ArrayProto.map, + nativeReduce = ArrayProto.reduce, + nativeReduceRight = ArrayProto.reduceRight, + nativeFilter = ArrayProto.filter, + nativeEvery = ArrayProto.every, + nativeSome = ArrayProto.some, + nativeIndexOf = ArrayProto.indexOf, + nativeLastIndexOf = ArrayProto.lastIndexOf, + nativeIsArray = Array.isArray, + nativeKeys = Object.keys, + nativeBind = FuncProto.bind; + + // Create a safe reference to the Underscore object for use below. + var _ = function(obj) { + if (obj instanceof _) return obj; + if (!(this instanceof _)) return new _(obj); + this._wrapped = obj; + }; + + // Export the Underscore object for **Node.js**, with + // backwards-compatibility for the old `require()` API. If we're in + // the browser, add `_` as a global object via a string identifier, + // for Closure Compiler "advanced" mode. + if (typeof exports !== 'undefined') { + if (typeof module !== 'undefined' && module.exports) { + exports = module.exports = _; + } + exports._ = _; + } else { + root._ = _; + } + + // Current version. + _.VERSION = '1.5.1'; + + // Collection Functions + // -------------------- + + // The cornerstone, an `each` implementation, aka `forEach`. + // Handles objects with the built-in `forEach`, arrays, and raw objects. + // Delegates to **ECMAScript 5**'s native `forEach` if available. + var each = _.each = _.forEach = function(obj, iterator, context) { + if (obj == null) return; + if (nativeForEach && obj.forEach === nativeForEach) { + obj.forEach(iterator, context); + } else if (obj.length === +obj.length) { + for (var i = 0, l = obj.length; i < l; i++) { + if (iterator.call(context, obj[i], i, obj) === breaker) return; + } + } else { + for (var key in obj) { + if (_.has(obj, key)) { + if (iterator.call(context, obj[key], key, obj) === breaker) return; + } + } + } + }; + + // Return the results of applying the iterator to each element. + // Delegates to **ECMAScript 5**'s native `map` if available. + _.map = _.collect = function(obj, iterator, context) { + var results = []; + if (obj == null) return results; + if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context); + each(obj, function(value, index, list) { + results.push(iterator.call(context, value, index, list)); + }); + return results; + }; + + var reduceError = 'Reduce of empty array with no initial value'; + + // **Reduce** builds up a single result from a list of values, aka `inject`, + // or `foldl`. Delegates to **ECMAScript 5**'s native `reduce` if available. + _.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) { + var initial = arguments.length > 2; + if (obj == null) obj = []; + if (nativeReduce && obj.reduce === nativeReduce) { + if (context) iterator = _.bind(iterator, context); + return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator); + } + each(obj, function(value, index, list) { + if (!initial) { + memo = value; + initial = true; + } else { + memo = iterator.call(context, memo, value, index, list); + } + }); + if (!initial) throw new TypeError(reduceError); + return memo; + }; + + // The right-associative version of reduce, also known as `foldr`. + // Delegates to **ECMAScript 5**'s native `reduceRight` if available. + _.reduceRight = _.foldr = function(obj, iterator, memo, context) { + var initial = arguments.length > 2; + if (obj == null) obj = []; + if (nativeReduceRight && obj.reduceRight === nativeReduceRight) { + if (context) iterator = _.bind(iterator, context); + return initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator); + } + var length = obj.length; + if (length !== +length) { + var keys = _.keys(obj); + length = keys.length; + } + each(obj, function(value, index, list) { + index = keys ? keys[--length] : --length; + if (!initial) { + memo = obj[index]; + initial = true; + } else { + memo = iterator.call(context, memo, obj[index], index, list); + } + }); + if (!initial) throw new TypeError(reduceError); + return memo; + }; + + // Return the first value which passes a truth test. Aliased as `detect`. + _.find = _.detect = function(obj, iterator, context) { + var result; + any(obj, function(value, index, list) { + if (iterator.call(context, value, index, list)) { + result = value; + return true; + } + }); + return result; + }; + + // Return all the elements that pass a truth test. + // Delegates to **ECMAScript 5**'s native `filter` if available. + // Aliased as `select`. + _.filter = _.select = function(obj, iterator, context) { + var results = []; + if (obj == null) return results; + if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context); + each(obj, function(value, index, list) { + if (iterator.call(context, value, index, list)) results.push(value); + }); + return results; + }; + + // Return all the elements for which a truth test fails. + _.reject = function(obj, iterator, context) { + return _.filter(obj, function(value, index, list) { + return !iterator.call(context, value, index, list); + }, context); + }; + + // Determine whether all of the elements match a truth test. + // Delegates to **ECMAScript 5**'s native `every` if available. + // Aliased as `all`. + _.every = _.all = function(obj, iterator, context) { + iterator || (iterator = _.identity); + var result = true; + if (obj == null) return result; + if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context); + each(obj, function(value, index, list) { + if (!(result = result && iterator.call(context, value, index, list))) return breaker; + }); + return !!result; + }; + + // Determine if at least one element in the object matches a truth test. + // Delegates to **ECMAScript 5**'s native `some` if available. + // Aliased as `any`. + var any = _.some = _.any = function(obj, iterator, context) { + iterator || (iterator = _.identity); + var result = false; + if (obj == null) return result; + if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context); + each(obj, function(value, index, list) { + if (result || (result = iterator.call(context, value, index, list))) return breaker; + }); + return !!result; + }; + + // Determine if the array or object contains a given value (using `===`). + // Aliased as `include`. + _.contains = _.include = function(obj, target) { + if (obj == null) return false; + if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1; + return any(obj, function(value) { + return value === target; + }); + }; + + // Invoke a method (with arguments) on every item in a collection. + _.invoke = function(obj, method) { + var args = slice.call(arguments, 2); + var isFunc = _.isFunction(method); + return _.map(obj, function(value) { + return (isFunc ? method : value[method]).apply(value, args); + }); + }; + + // Convenience version of a common use case of `map`: fetching a property. + _.pluck = function(obj, key) { + return _.map(obj, function(value){ return value[key]; }); + }; + + // Convenience version of a common use case of `filter`: selecting only objects + // containing specific `key:value` pairs. + _.where = function(obj, attrs, first) { + if (_.isEmpty(attrs)) return first ? void 0 : []; + return _[first ? 'find' : 'filter'](obj, function(value) { + for (var key in attrs) { + if (attrs[key] !== value[key]) return false; + } + return true; + }); + }; + + // Convenience version of a common use case of `find`: getting the first object + // containing specific `key:value` pairs. + _.findWhere = function(obj, attrs) { + return _.where(obj, attrs, true); + }; + + // Return the maximum element or (element-based computation). + // Can't optimize arrays of integers longer than 65,535 elements. + // See [WebKit Bug 80797](https://bugs.webkit.org/show_bug.cgi?id=80797) + _.max = function(obj, iterator, context) { + if (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) { + return Math.max.apply(Math, obj); + } + if (!iterator && _.isEmpty(obj)) return -Infinity; + var result = {computed : -Infinity, value: -Infinity}; + each(obj, function(value, index, list) { + var computed = iterator ? iterator.call(context, value, index, list) : value; + computed > result.computed && (result = {value : value, computed : computed}); + }); + return result.value; + }; + + // Return the minimum element (or element-based computation). + _.min = function(obj, iterator, context) { + if (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) { + return Math.min.apply(Math, obj); + } + if (!iterator && _.isEmpty(obj)) return Infinity; + var result = {computed : Infinity, value: Infinity}; + each(obj, function(value, index, list) { + var computed = iterator ? iterator.call(context, value, index, list) : value; + computed < result.computed && (result = {value : value, computed : computed}); + }); + return result.value; + }; + + // Shuffle an array. + _.shuffle = function(obj) { + var rand; + var index = 0; + var shuffled = []; + each(obj, function(value) { + rand = _.random(index++); + shuffled[index - 1] = shuffled[rand]; + shuffled[rand] = value; + }); + return shuffled; + }; + + // An internal function to generate lookup iterators. + var lookupIterator = function(value) { + return _.isFunction(value) ? value : function(obj){ return obj[value]; }; + }; + + // Sort the object's values by a criterion produced by an iterator. + _.sortBy = function(obj, value, context) { + var iterator = lookupIterator(value); + return _.pluck(_.map(obj, function(value, index, list) { + return { + value : value, + index : index, + criteria : iterator.call(context, value, index, list) + }; + }).sort(function(left, right) { + var a = left.criteria; + var b = right.criteria; + if (a !== b) { + if (a > b || a === void 0) return 1; + if (a < b || b === void 0) return -1; + } + return left.index < right.index ? -1 : 1; + }), 'value'); + }; + + // An internal function used for aggregate "group by" operations. + var group = function(obj, value, context, behavior) { + var result = {}; + var iterator = lookupIterator(value == null ? _.identity : value); + each(obj, function(value, index) { + var key = iterator.call(context, value, index, obj); + behavior(result, key, value); + }); + return result; + }; + + // Groups the object's values by a criterion. Pass either a string attribute + // to group by, or a function that returns the criterion. + _.groupBy = function(obj, value, context) { + return group(obj, value, context, function(result, key, value) { + (_.has(result, key) ? result[key] : (result[key] = [])).push(value); + }); + }; + + // Counts instances of an object that group by a certain criterion. Pass + // either a string attribute to count by, or a function that returns the + // criterion. + _.countBy = function(obj, value, context) { + return group(obj, value, context, function(result, key) { + if (!_.has(result, key)) result[key] = 0; + result[key]++; + }); + }; + + // Use a comparator function to figure out the smallest index at which + // an object should be inserted so as to maintain order. Uses binary search. + _.sortedIndex = function(array, obj, iterator, context) { + iterator = iterator == null ? _.identity : lookupIterator(iterator); + var value = iterator.call(context, obj); + var low = 0, high = array.length; + while (low < high) { + var mid = (low + high) >>> 1; + iterator.call(context, array[mid]) < value ? low = mid + 1 : high = mid; + } + return low; + }; + + // Safely create a real, live array from anything iterable. + _.toArray = function(obj) { + if (!obj) return []; + if (_.isArray(obj)) return slice.call(obj); + if (obj.length === +obj.length) return _.map(obj, _.identity); + return _.values(obj); + }; + + // Return the number of elements in an object. + _.size = function(obj) { + if (obj == null) return 0; + return (obj.length === +obj.length) ? obj.length : _.keys(obj).length; + }; + + // Array Functions + // --------------- + + // Get the first element of an array. Passing **n** will return the first N + // values in the array. Aliased as `head` and `take`. The **guard** check + // allows it to work with `_.map`. + _.first = _.head = _.take = function(array, n, guard) { + if (array == null) return void 0; + return (n != null) && !guard ? slice.call(array, 0, n) : array[0]; + }; + + // Returns everything but the last entry of the array. Especially useful on + // the arguments object. Passing **n** will return all the values in + // the array, excluding the last N. The **guard** check allows it to work with + // `_.map`. + _.initial = function(array, n, guard) { + return slice.call(array, 0, array.length - ((n == null) || guard ? 1 : n)); + }; + + // Get the last element of an array. Passing **n** will return the last N + // values in the array. The **guard** check allows it to work with `_.map`. + _.last = function(array, n, guard) { + if (array == null) return void 0; + if ((n != null) && !guard) { + return slice.call(array, Math.max(array.length - n, 0)); + } else { + return array[array.length - 1]; + } + }; + + // Returns everything but the first entry of the array. Aliased as `tail` and `drop`. + // Especially useful on the arguments object. Passing an **n** will return + // the rest N values in the array. The **guard** + // check allows it to work with `_.map`. + _.rest = _.tail = _.drop = function(array, n, guard) { + return slice.call(array, (n == null) || guard ? 1 : n); + }; + + // Trim out all falsy values from an array. + _.compact = function(array) { + return _.filter(array, _.identity); + }; + + // Internal implementation of a recursive `flatten` function. + var flatten = function(input, shallow, output) { + if (shallow && _.every(input, _.isArray)) { + return concat.apply(output, input); + } + each(input, function(value) { + if (_.isArray(value) || _.isArguments(value)) { + shallow ? push.apply(output, value) : flatten(value, shallow, output); + } else { + output.push(value); + } + }); + return output; + }; + + // Return a completely flattened version of an array. + _.flatten = function(array, shallow) { + return flatten(array, shallow, []); + }; + + // Return a version of the array that does not contain the specified value(s). + _.without = function(array) { + return _.difference(array, slice.call(arguments, 1)); + }; + + // Produce a duplicate-free version of the array. If the array has already + // been sorted, you have the option of using a faster algorithm. + // Aliased as `unique`. + _.uniq = _.unique = function(array, isSorted, iterator, context) { + if (_.isFunction(isSorted)) { + context = iterator; + iterator = isSorted; + isSorted = false; + } + var initial = iterator ? _.map(array, iterator, context) : array; + var results = []; + var seen = []; + each(initial, function(value, index) { + if (isSorted ? (!index || seen[seen.length - 1] !== value) : !_.contains(seen, value)) { + seen.push(value); + results.push(array[index]); + } + }); + return results; + }; + + // Produce an array that contains the union: each distinct element from all of + // the passed-in arrays. + _.union = function() { + return _.uniq(_.flatten(arguments, true)); + }; + + // Produce an array that contains every item shared between all the + // passed-in arrays. + _.intersection = function(array) { + var rest = slice.call(arguments, 1); + return _.filter(_.uniq(array), function(item) { + return _.every(rest, function(other) { + return _.indexOf(other, item) >= 0; + }); + }); + }; + + // Take the difference between one array and a number of other arrays. + // Only the elements present in just the first array will remain. + _.difference = function(array) { + var rest = concat.apply(ArrayProto, slice.call(arguments, 1)); + return _.filter(array, function(value){ return !_.contains(rest, value); }); + }; + + // Zip together multiple lists into a single array -- elements that share + // an index go together. + _.zip = function() { + var length = _.max(_.pluck(arguments, "length").concat(0)); + var results = new Array(length); + for (var i = 0; i < length; i++) { + results[i] = _.pluck(arguments, '' + i); + } + return results; + }; + + // Converts lists into objects. Pass either a single array of `[key, value]` + // pairs, or two parallel arrays of the same length -- one of keys, and one of + // the corresponding values. + _.object = function(list, values) { + if (list == null) return {}; + var result = {}; + for (var i = 0, l = list.length; i < l; i++) { + if (values) { + result[list[i]] = values[i]; + } else { + result[list[i][0]] = list[i][1]; + } + } + return result; + }; + + // If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**), + // we need this function. Return the position of the first occurrence of an + // item in an array, or -1 if the item is not included in the array. + // Delegates to **ECMAScript 5**'s native `indexOf` if available. + // If the array is large and already in sort order, pass `true` + // for **isSorted** to use binary search. + _.indexOf = function(array, item, isSorted) { + if (array == null) return -1; + var i = 0, l = array.length; + if (isSorted) { + if (typeof isSorted == 'number') { + i = (isSorted < 0 ? Math.max(0, l + isSorted) : isSorted); + } else { + i = _.sortedIndex(array, item); + return array[i] === item ? i : -1; + } + } + if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item, isSorted); + for (; i < l; i++) if (array[i] === item) return i; + return -1; + }; + + // Delegates to **ECMAScript 5**'s native `lastIndexOf` if available. + _.lastIndexOf = function(array, item, from) { + if (array == null) return -1; + var hasIndex = from != null; + if (nativeLastIndexOf && array.lastIndexOf === nativeLastIndexOf) { + return hasIndex ? array.lastIndexOf(item, from) : array.lastIndexOf(item); + } + var i = (hasIndex ? from : array.length); + while (i--) if (array[i] === item) return i; + return -1; + }; + + // Generate an integer Array containing an arithmetic progression. A port of + // the native Python `range()` function. See + // [the Python documentation](http://docs.python.org/library/functions.html#range). + _.range = function(start, stop, step) { + if (arguments.length <= 1) { + stop = start || 0; + start = 0; + } + step = arguments[2] || 1; + + var len = Math.max(Math.ceil((stop - start) / step), 0); + var idx = 0; + var range = new Array(len); + + while(idx < len) { + range[idx++] = start; + start += step; + } + + return range; + }; + + // Function (ahem) Functions + // ------------------ + + // Reusable constructor function for prototype setting. + var ctor = function(){}; + + // Create a function bound to a given object (assigning `this`, and arguments, + // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if + // available. + _.bind = function(func, context) { + var args, bound; + if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1)); + if (!_.isFunction(func)) throw new TypeError; + args = slice.call(arguments, 2); + return bound = function() { + if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments))); + ctor.prototype = func.prototype; + var self = new ctor; + ctor.prototype = null; + var result = func.apply(self, args.concat(slice.call(arguments))); + if (Object(result) === result) return result; + return self; + }; + }; + + // Partially apply a function by creating a version that has had some of its + // arguments pre-filled, without changing its dynamic `this` context. + _.partial = function(func) { + var args = slice.call(arguments, 1); + return function() { + return func.apply(this, args.concat(slice.call(arguments))); + }; + }; + + // Bind all of an object's methods to that object. Useful for ensuring that + // all callbacks defined on an object belong to it. + _.bindAll = function(obj) { + var funcs = slice.call(arguments, 1); + if (funcs.length === 0) throw new Error("bindAll must be passed function names"); + each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); }); + return obj; + }; + + // Memoize an expensive function by storing its results. + _.memoize = function(func, hasher) { + var memo = {}; + hasher || (hasher = _.identity); + return function() { + var key = hasher.apply(this, arguments); + return _.has(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments)); + }; + }; + + // Delays a function for the given number of milliseconds, and then calls + // it with the arguments supplied. + _.delay = function(func, wait) { + var args = slice.call(arguments, 2); + return setTimeout(function(){ return func.apply(null, args); }, wait); + }; + + // Defers a function, scheduling it to run after the current call stack has + // cleared. + _.defer = function(func) { + return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1))); + }; + + // Returns a function, that, when invoked, will only be triggered at most once + // during a given window of time. Normally, the throttled function will run + // as much as it can, without ever going more than once per `wait` duration; + // but if you'd like to disable the execution on the leading edge, pass + // `{leading: false}`. To disable execution on the trailing edge, ditto. + _.throttle = function(func, wait, options) { + var context, args, result; + var timeout = null; + var previous = 0; + options || (options = {}); + var later = function() { + previous = options.leading === false ? 0 : new Date; + timeout = null; + result = func.apply(context, args); + }; + return function() { + var now = new Date; + if (!previous && options.leading === false) previous = now; + var remaining = wait - (now - previous); + context = this; + args = arguments; + if (remaining <= 0) { + clearTimeout(timeout); + timeout = null; + previous = now; + result = func.apply(context, args); + } else if (!timeout && options.trailing !== false) { + timeout = setTimeout(later, remaining); + } + return result; + }; + }; + + // Returns a function, that, as long as it continues to be invoked, will not + // be triggered. The function will be called after it stops being called for + // N milliseconds. If `immediate` is passed, trigger the function on the + // leading edge, instead of the trailing. + _.debounce = function(func, wait, immediate) { + var result; + var timeout = null; + return function() { + var context = this, args = arguments; + var later = function() { + timeout = null; + if (!immediate) result = func.apply(context, args); + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + if (callNow) result = func.apply(context, args); + return result; + }; + }; + + // Returns a function that will be executed at most one time, no matter how + // often you call it. Useful for lazy initialization. + _.once = function(func) { + var ran = false, memo; + return function() { + if (ran) return memo; + ran = true; + memo = func.apply(this, arguments); + func = null; + return memo; + }; + }; + + // Returns the first function passed as an argument to the second, + // allowing you to adjust arguments, run code before and after, and + // conditionally execute the original function. + _.wrap = function(func, wrapper) { + return function() { + var args = [func]; + push.apply(args, arguments); + return wrapper.apply(this, args); + }; + }; + + // Returns a function that is the composition of a list of functions, each + // consuming the return value of the function that follows. + _.compose = function() { + var funcs = arguments; + return function() { + var args = arguments; + for (var i = funcs.length - 1; i >= 0; i--) { + args = [funcs[i].apply(this, args)]; + } + return args[0]; + }; + }; + + // Returns a function that will only be executed after being called N times. + _.after = function(times, func) { + return function() { + if (--times < 1) { + return func.apply(this, arguments); + } + }; + }; + + // Object Functions + // ---------------- + + // Retrieve the names of an object's properties. + // Delegates to **ECMAScript 5**'s native `Object.keys` + _.keys = nativeKeys || function(obj) { + if (obj !== Object(obj)) throw new TypeError('Invalid object'); + var keys = []; + for (var key in obj) if (_.has(obj, key)) keys.push(key); + return keys; + }; + + // Retrieve the values of an object's properties. + _.values = function(obj) { + var values = []; + for (var key in obj) if (_.has(obj, key)) values.push(obj[key]); + return values; + }; + + // Convert an object into a list of `[key, value]` pairs. + _.pairs = function(obj) { + var pairs = []; + for (var key in obj) if (_.has(obj, key)) pairs.push([key, obj[key]]); + return pairs; + }; + + // Invert the keys and values of an object. The values must be serializable. + _.invert = function(obj) { + var result = {}; + for (var key in obj) if (_.has(obj, key)) result[obj[key]] = key; + return result; + }; + + // Return a sorted list of the function names available on the object. + // Aliased as `methods` + _.functions = _.methods = function(obj) { + var names = []; + for (var key in obj) { + if (_.isFunction(obj[key])) names.push(key); + } + return names.sort(); + }; + + // Extend a given object with all the properties in passed-in object(s). + _.extend = function(obj) { + each(slice.call(arguments, 1), function(source) { + if (source) { + for (var prop in source) { + obj[prop] = source[prop]; + } + } + }); + return obj; + }; + + // Return a copy of the object only containing the whitelisted properties. + _.pick = function(obj) { + var copy = {}; + var keys = concat.apply(ArrayProto, slice.call(arguments, 1)); + each(keys, function(key) { + if (key in obj) copy[key] = obj[key]; + }); + return copy; + }; + + // Return a copy of the object without the blacklisted properties. + _.omit = function(obj) { + var copy = {}; + var keys = concat.apply(ArrayProto, slice.call(arguments, 1)); + for (var key in obj) { + if (!_.contains(keys, key)) copy[key] = obj[key]; + } + return copy; + }; + + // Fill in a given object with default properties. + _.defaults = function(obj) { + each(slice.call(arguments, 1), function(source) { + if (source) { + for (var prop in source) { + if (obj[prop] === void 0) obj[prop] = source[prop]; + } + } + }); + return obj; + }; + + // Create a (shallow-cloned) duplicate of an object. + _.clone = function(obj) { + if (!_.isObject(obj)) return obj; + return _.isArray(obj) ? obj.slice() : _.extend({}, obj); + }; + + // Invokes interceptor with the obj, and then returns obj. + // The primary purpose of this method is to "tap into" a method chain, in + // order to perform operations on intermediate results within the chain. + _.tap = function(obj, interceptor) { + interceptor(obj); + return obj; + }; + + // Internal recursive comparison function for `isEqual`. + var eq = function(a, b, aStack, bStack) { + // Identical objects are equal. `0 === -0`, but they aren't identical. + // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal). + if (a === b) return a !== 0 || 1 / a == 1 / b; + // A strict comparison is necessary because `null == undefined`. + if (a == null || b == null) return a === b; + // Unwrap any wrapped objects. + if (a instanceof _) a = a._wrapped; + if (b instanceof _) b = b._wrapped; + // Compare `[[Class]]` names. + var className = toString.call(a); + if (className != toString.call(b)) return false; + switch (className) { + // Strings, numbers, dates, and booleans are compared by value. + case '[object String]': + // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is + // equivalent to `new String("5")`. + return a == String(b); + case '[object Number]': + // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for + // other numeric values. + return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b); + case '[object Date]': + case '[object Boolean]': + // Coerce dates and booleans to numeric primitive values. Dates are compared by their + // millisecond representations. Note that invalid dates with millisecond representations + // of `NaN` are not equivalent. + return +a == +b; + // RegExps are compared by their source patterns and flags. + case '[object RegExp]': + return a.source == b.source && + a.global == b.global && + a.multiline == b.multiline && + a.ignoreCase == b.ignoreCase; + } + if (typeof a != 'object' || typeof b != 'object') return false; + // Assume equality for cyclic structures. The algorithm for detecting cyclic + // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`. + var length = aStack.length; + while (length--) { + // Linear search. Performance is inversely proportional to the number of + // unique nested structures. + if (aStack[length] == a) return bStack[length] == b; + } + // Objects with different constructors are not equivalent, but `Object`s + // from different frames are. + var aCtor = a.constructor, bCtor = b.constructor; + if (aCtor !== bCtor && !(_.isFunction(aCtor) && (aCtor instanceof aCtor) && + _.isFunction(bCtor) && (bCtor instanceof bCtor))) { + return false; + } + // Add the first object to the stack of traversed objects. + aStack.push(a); + bStack.push(b); + var size = 0, result = true; + // Recursively compare objects and arrays. + if (className == '[object Array]') { + // Compare array lengths to determine if a deep comparison is necessary. + size = a.length; + result = size == b.length; + if (result) { + // Deep compare the contents, ignoring non-numeric properties. + while (size--) { + if (!(result = eq(a[size], b[size], aStack, bStack))) break; + } + } + } else { + // Deep compare objects. + for (var key in a) { + if (_.has(a, key)) { + // Count the expected number of properties. + size++; + // Deep compare each member. + if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break; + } + } + // Ensure that both objects contain the same number of properties. + if (result) { + for (key in b) { + if (_.has(b, key) && !(size--)) break; + } + result = !size; + } + } + // Remove the first object from the stack of traversed objects. + aStack.pop(); + bStack.pop(); + return result; + }; + + // Perform a deep comparison to check if two objects are equal. + _.isEqual = function(a, b) { + return eq(a, b, [], []); + }; + + // Is a given array, string, or object empty? + // An "empty" object has no enumerable own-properties. + _.isEmpty = function(obj) { + if (obj == null) return true; + if (_.isArray(obj) || _.isString(obj)) return obj.length === 0; + for (var key in obj) if (_.has(obj, key)) return false; + return true; + }; + + // Is a given value a DOM element? + _.isElement = function(obj) { + return !!(obj && obj.nodeType === 1); + }; + + // Is a given value an array? + // Delegates to ECMA5's native Array.isArray + _.isArray = nativeIsArray || function(obj) { + return toString.call(obj) == '[object Array]'; + }; + + // Is a given variable an object? + _.isObject = function(obj) { + return obj === Object(obj); + }; + + // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp. + each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) { + _['is' + name] = function(obj) { + return toString.call(obj) == '[object ' + name + ']'; + }; + }); + + // Define a fallback version of the method in browsers (ahem, IE), where + // there isn't any inspectable "Arguments" type. + if (!_.isArguments(arguments)) { + _.isArguments = function(obj) { + return !!(obj && _.has(obj, 'callee')); + }; + } + + // Optimize `isFunction` if appropriate. + if (typeof (/./) !== 'function') { + _.isFunction = function(obj) { + return typeof obj === 'function'; + }; + } + + // Is a given object a finite number? + _.isFinite = function(obj) { + return isFinite(obj) && !isNaN(parseFloat(obj)); + }; + + // Is the given value `NaN`? (NaN is the only number which does not equal itself). + _.isNaN = function(obj) { + return _.isNumber(obj) && obj != +obj; + }; + + // Is a given value a boolean? + _.isBoolean = function(obj) { + return obj === true || obj === false || toString.call(obj) == '[object Boolean]'; + }; + + // Is a given value equal to null? + _.isNull = function(obj) { + return obj === null; + }; + + // Is a given variable undefined? + _.isUndefined = function(obj) { + return obj === void 0; + }; + + // Shortcut function for checking if an object has a given property directly + // on itself (in other words, not on a prototype). + _.has = function(obj, key) { + return hasOwnProperty.call(obj, key); + }; + + // Utility Functions + // ----------------- + + // Run Underscore.js in *noConflict* mode, returning the `_` variable to its + // previous owner. Returns a reference to the Underscore object. + _.noConflict = function() { + root._ = previousUnderscore; + return this; + }; + + // Keep the identity function around for default iterators. + _.identity = function(value) { + return value; + }; + + // Run a function **n** times. + _.times = function(n, iterator, context) { + var accum = Array(Math.max(0, n)); + for (var i = 0; i < n; i++) accum[i] = iterator.call(context, i); + return accum; + }; + + // Return a random integer between min and max (inclusive). + _.random = function(min, max) { + if (max == null) { + max = min; + min = 0; + } + return min + Math.floor(Math.random() * (max - min + 1)); + }; + + // List of HTML entities for escaping. + var entityMap = { + escape: { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + '/': '/' + } + }; + entityMap.unescape = _.invert(entityMap.escape); + + // Regexes containing the keys and values listed immediately above. + var entityRegexes = { + escape: new RegExp('[' + _.keys(entityMap.escape).join('') + ']', 'g'), + unescape: new RegExp('(' + _.keys(entityMap.unescape).join('|') + ')', 'g') + }; + + // Functions for escaping and unescaping strings to/from HTML interpolation. + _.each(['escape', 'unescape'], function(method) { + _[method] = function(string) { + if (string == null) return ''; + return ('' + string).replace(entityRegexes[method], function(match) { + return entityMap[method][match]; + }); + }; + }); + + // If the value of the named `property` is a function then invoke it with the + // `object` as context; otherwise, return it. + _.result = function(object, property) { + if (object == null) return void 0; + var value = object[property]; + return _.isFunction(value) ? value.call(object) : value; + }; + + // Add your own custom functions to the Underscore object. + _.mixin = function(obj) { + each(_.functions(obj), function(name){ + var func = _[name] = obj[name]; + _.prototype[name] = function() { + var args = [this._wrapped]; + push.apply(args, arguments); + return result.call(this, func.apply(_, args)); + }; + }); + }; + + // Generate a unique integer id (unique within the entire client session). + // Useful for temporary DOM ids. + var idCounter = 0; + _.uniqueId = function(prefix) { + var id = ++idCounter + ''; + return prefix ? prefix + id : id; + }; + + // By default, Underscore uses ERB-style template delimiters, change the + // following template settings to use alternative delimiters. + _.templateSettings = { + evaluate : /<%([\s\S]+?)%>/g, + interpolate : /<%=([\s\S]+?)%>/g, + escape : /<%-([\s\S]+?)%>/g + }; + + // When customizing `templateSettings`, if you don't want to define an + // interpolation, evaluation or escaping regex, we need one that is + // guaranteed not to match. + var noMatch = /(.)^/; + + // Certain characters need to be escaped so that they can be put into a + // string literal. + var escapes = { + "'": "'", + '\\': '\\', + '\r': 'r', + '\n': 'n', + '\t': 't', + '\u2028': 'u2028', + '\u2029': 'u2029' + }; + + var escaper = /\\|'|\r|\n|\t|\u2028|\u2029/g; + + // JavaScript micro-templating, similar to John Resig's implementation. + // Underscore templating handles arbitrary delimiters, preserves whitespace, + // and correctly escapes quotes within interpolated code. + _.template = function(text, data, settings) { + var render; + settings = _.defaults({}, settings, _.templateSettings); + + // Combine delimiters into one regular expression via alternation. + var matcher = new RegExp([ + (settings.escape || noMatch).source, + (settings.interpolate || noMatch).source, + (settings.evaluate || noMatch).source + ].join('|') + '|$', 'g'); + + // Compile the template source, escaping string literals appropriately. + var index = 0; + var source = "__p+='"; + text.replace(matcher, function(match, escape, interpolate, evaluate, offset) { + source += text.slice(index, offset) + .replace(escaper, function(match) { return '\\' + escapes[match]; }); + + if (escape) { + source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'"; + } + if (interpolate) { + source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'"; + } + if (evaluate) { + source += "';\n" + evaluate + "\n__p+='"; + } + index = offset + match.length; + return match; + }); + source += "';\n"; + + // If a variable is not specified, place data values in local scope. + if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n'; + + source = "var __t,__p='',__j=Array.prototype.join," + + "print=function(){__p+=__j.call(arguments,'');};\n" + + source + "return __p;\n"; + + try { + render = new Function(settings.variable || 'obj', '_', source); + } catch (e) { + e.source = source; + throw e; + } + + if (data) return render(data, _); + var template = function(data) { + return render.call(this, data, _); + }; + + // Provide the compiled function source as a convenience for precompilation. + template.source = 'function(' + (settings.variable || 'obj') + '){\n' + source + '}'; + + return template; + }; + + // Add a "chain" function, which will delegate to the wrapper. + _.chain = function(obj) { + return _(obj).chain(); + }; + + // OOP + // --------------- + // If Underscore is called as a function, it returns a wrapped object that + // can be used OO-style. This wrapper holds altered versions of all the + // underscore functions. Wrapped objects may be chained. + + // Helper function to continue chaining intermediate results. + var result = function(obj) { + return this._chain ? _(obj).chain() : obj; + }; + + // Add all of the Underscore functions to the wrapper object. + _.mixin(_); + + // Add all mutator Array functions to the wrapper. + each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) { + var method = ArrayProto[name]; + _.prototype[name] = function() { + var obj = this._wrapped; + method.apply(obj, arguments); + if ((name == 'shift' || name == 'splice') && obj.length === 0) delete obj[0]; + return result.call(this, obj); + }; + }); + + // Add all accessor Array functions to the wrapper. + each(['concat', 'join', 'slice'], function(name) { + var method = ArrayProto[name]; + _.prototype[name] = function() { + return result.call(this, method.apply(this._wrapped, arguments)); + }; + }); + + _.extend(_.prototype, { + + // Start chaining a wrapped Underscore object. + chain: function() { + this._chain = true; + return this; + }, + + // Extracts the result from a wrapped and chained object. + value: function() { + return this._wrapped; + } + + }); + +}).call(this);/* end <bundled/underscore/underscore.js> */ +/* start <util/JOBAD.util.js> */ +/* + JOBAD utility functions + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +/* various utility functions */ +JOBAD.util = {}; + +/* + Binds every function within an object recursively. + @param obj Object to bind. + @param thisObj 'this' inside functions. +*/ +JOBAD.util.bindEverything = function(obj, thisObj){ + if(JOBAD.util.isObject(obj) && typeof obj != 'function' ){ + var ret = {}; + for(var key in obj){ + ret[key] = JOBAD.util.bindEverything(obj[key], thisObj); + } + return ret; + } else if(typeof obj == 'function'){ + return JOBAD.util.bind(obj, thisObj); + } else { + return JOBAD.util.clone(obj); + } +}; + +/* + Creates a unique ID + @param prefix Optional. A prefix to use for the UID. +*/ +JOBAD.util.UID = function(prefix){ + var prefix = (typeof prefix == "string")?prefix+"_":""; + var time = (new Date()).getTime(); + var id1 = Math.floor(Math.random()*1000); + var id2 = Math.floor(Math.random()*1000); + return ""+prefix+time+"_"+id1+"_"+id2; +}; + +/* + Creates a dropdown (<select>) control. + @param values Values to use. + @param texts Texts to use. + @param start Initially selected id. +*/ +JOBAD.util.createDropDown = function(values, texts, start){ + var select = JOBAD.refs.$("<select>"); + + for(var i=0;i<texts.length;i++){ + select.append( + JOBAD.refs.$("<option>") + .attr("value", values[i]) + .text(texts[i]) + ); + } + + select.find("option").eq((typeof start == "number")?start:0).prop('selected', true); + + return select; +} + +/* + Creates a radio button for use with Bootsrap + @param texts Texts to use. + @param start Initial selection +*/ +JOBAD.util.createRadio = function(texts, start){ + var id = JOBAD.util.UID(); //Id for the radio buttons + var selfChange = false; + + if(typeof start !== 'number'){ + start = 0; + } + + var Div = JOBAD.refs.$('<div>').addClass("btn-group"); + var Div2 = JOBAD.refs.$('<div>').hide(); + + for(var i=0;i<texts.length;i++){ + Div.append( + JOBAD.refs.$("<button>").addClass("btn").text(texts[i]) + ); + Div2.append( + JOBAD.refs.$("<input type='radio' name='"+id+"' value='"+JOBAD.util.UID()+"'>") + ); + } + + + var Buttons = Div.find("button"); + var Inputs = Div2.find("input"); + + Buttons.on("click", function(){ + var radio = Inputs.eq(Buttons.index(this)); + radio[0].checked = true; + Inputs.change(); + }) + + Inputs + .change(function(e){ + Buttons.removeClass("active"); + + Inputs.each(function(i){ + var me = JOBAD.refs.$(this); + if(me.is(":checked")){ + Buttons.eq(i).addClass("active"); + } + }) + e.stopPropagation(); + }); + + Inputs.eq(start)[0].checked = true; + Inputs.change(); + + + return JOBAD.refs.$("<div>").append(Div, Div2); +}; + +/* + Creates tab data compatible with Bootstrap. + @param names Texts to use. + @param divs Divs to use as content. + @param config Configuration. Optional. + @param config.tabParams Params for Tab creation. + @param config.type Type of tabs to use. CSS class. + @param config.select Select Hook. function(tabName, tabDiv) To be called on selection of a div. + @param config.unselect Deselect Hook. function(tabName, tabDiv) Top be called on the deselection of a div. +*/ +JOBAD.util.createTabs = function(names, divs, config){ + var config = JOBAD.util.defined(config); + + var options = JOBAD.util.defined(config.tabParams); + var tabtype = (typeof config.type == "string")?config.type:""; + var enableHook = (typeof config.select == "function")?config.select:function(){}; + var disableHook = (typeof config.unselect == "function")?config.unselect:function(){}; + + var ids = []; + + var div = JOBAD.refs.$("<div>").addClass("tabbable "+tabtype); + var ul = JOBAD.refs.$("<ul>").appendTo(div).addClass("nav nav-tabs"); + var cdiv = JOBAD.refs.$("<div>").addClass("tab-content").appendTo(div); + for(var i=0;i<names.length;i++){ + var id = JOBAD.util.UID(); + ids.push("#"+id); + ul.append( + JOBAD.refs.$("<li>").append(JOBAD.refs.$("<a>").attr("data-toggle", "tab").attr("href", "#"+id).text(names[i])) + ); + + JOBAD.refs.$("<div>").append(divs[i]).attr("id", id).addClass("tab-pane").appendTo(cdiv); + } + cdiv.children().eq(0).addClass("active"); + + JOBAD.refs.$('a[data-toggle="tab"]', ul).on("shown", function(e){ + if(typeof e.relatedTarget != "undefined"){ + var relatedTarget = JOBAD.refs.$(e.relatedTarget); + var tabId = ids.indexOf(relatedTarget.attr("href")); + + disableHook(relatedTarget.text(), JOBAD.refs.$(divs[tabId])); + } + + var Target = JOBAD.refs.$(e.target); + var tabId = ids.indexOf(Target.attr("href")); + enableHook(Target.text(), JOBAD.refs.$(divs[tabId])); + }); + + JOBAD.refs.$('a[data-toggle="tab"]', ul).eq(0).tab("show"); + + return div; +}; + +/* + Applies a function to the arguments of a function every time it is called. + @param func Function to wrap + @param wrap Wrapper function. +*/ + +JOBAD.util.argWrap = function(func, wrapper){ + return function(){ + var new_args = []; + for(var i=0;i<arguments.length;i++){ + new_args.push(arguments[i]); + } + + return func.apply(this, wrapper(new_args)); + }; +}; + + +/* + Applies Array.slice to the arguments of a function every time it is called. + @param func Function to wrap + @param to First parameter for args + @param from Second Parameter for slice +*/ + +JOBAD.util.argSlice = function(func, from, to){ + return JOBAD.util.argWrap(func, function(args){ + return args.slice(from, to); + }); +}; + +/* + Checks if 2 objects are equal. Does not accept functions. + @param a Object A + @param b Object B + @returns boolean +*/ +JOBAD.util.objectEquals = function(a, b){ + try{ + return JSON.stringify(a) == JSON.stringify(b); + } catch(e){ + return a==b; + } +}; + +/* + Similary to jQuery's .closest() but also accepts functions. +*/ +JOBAD.util.closest = function(element, selector){ + var element = JOBAD.refs.$(element); + if(typeof selector == "function"){ + while(element.length > 0){ + if(selector.call(element[0], element)){ + break; //we are matching + } + element = element.parent(); //go up + } + return element; + } else { + return element.closest(selector); + } +}; + +/* Element marking */ +/* + Marks an element as hidden. + @param element Element to mark as hidden. +*/ +JOBAD.util.markHidden = function(element){ + return JOBAD.util.markDefault(element).addClass("JOBAD_Ignore"); +}; + +/* + Marks an element as visible. + @param element Element to mark as visible. +*/ +JOBAD.util.markVisible = function(element){ + return JOBAD.util.markDefault(element).addClass("JOBAD_Notice"); +}; + +/* + Removes a marking from an element. Everything is treated as normal. + @param element Element to remove Marking from. +*/ +JOBAD.util.markDefault = function(element){ + return JOBAD.refs.$(element).removeClass("JOBAD_Ignore").removeClass("JOBAD_Notice"); +}; + +/* + Checks if an element is marked as hidden. + @param element Element to check. +*/ +JOBAD.util.isMarkedHidden = function(element){ + return (JOBAD.util.closest(element, function(e){ + //find the closest hidden one. + return e.hasClass("JOBAD_Ignore"); + }).length > 0); +}; + +/* + Checks if an element is marked as visible. + @param element Element to check. +*/ +JOBAD.util.isMarkedVisible = function(element){ + return JOBAD.refs.$(element).hasClass("JOBAD_Notice");; +}; + +/* + Checks if an element is hidden (either in reality or marked) . + @param element Element to check. +*/ +JOBAD.util.isHidden = function(element){ + var element = JOBAD.refs.$(element); + if(JOBAD.util.isMarkedVisible(element)){ + return false; + } else if(JOBAD.util.isMarkedHidden(element)){ + return true; + } else if(element.is("map") || element.is("area")){//in response to issue #14 + return false; + } else { + return element.is(":hidden"); + } +}; + +/* Other utility functions */ + +/* + Checks if object is defined and return obj, otherwise an empty Object. + @param obj Object to check. +*/ +JOBAD.util.defined = function(obj){ + return (typeof obj == "undefined")?{}:obj; +}; + +/* + Forces obj to be a boolean. + @param obj Object to check. + @param def Optional. Default to use instead. +*/ +JOBAD.util.forceBool = function(obj, def){ + if(typeof def == "undefined"){ + def = obj; + } + return (typeof obj == "boolean"?obj:(def?true:false)); +}; + +/* + Forces an object to be an array. +*/ +JOBAD.util.forceArray = function(obj, def){ + var def = def; + if(typeof def == "undefined"){ + if(typeof obj == "undefined"){ + def = []; + } else { + def = [obj]; + } + } + if(!JOBAD.util.isArray(def)){ + def = [def]; + } + return JOBAD.util.isArray(obj)?obj:def; +} + +/* + Forces obj to be a function. + @param func Function to check. + @param def Optional. Default to use instead. +*/ +JOBAD.util.forceFunction = function(func, def){ + //local References + var def = def; + var func = func; + if(typeof func == "function"){ + return func; + } else if(typeof def == "undefined"){ + return function(){return func; } + } else if(typeof def == "function"){ + return def; + } else { + return function(){return def; } + } +} + +/* + If obj is of type type, return obj else def. +*/ +JOBAD.util.ifType = function(obj, type, def){ + return (obj instanceof type)?obj:def; +} + +/* + Checks if two strings are equal, ignoring upper and lower case. +*/ +JOBAD.util.equalsIgnoreCase = function(a, b){ + var a = String(a); + var b = String(b); + + return (a.toLowerCase() == b.toLowerCase()) +}; + +/* + Orders a jQuery collection by their tree depth. + @param element Collection to sort. +*/ +JOBAD.util.orderTree = function(element){ + var element = JOBAD.refs.$(element); + return JOBAD.refs.$(element.get().sort(function(a, b){ + var a = JOBAD.refs.$(a).parents().filter(element).length; + var b = JOBAD.refs.$(b).parents().filter(element).length; + + if(a<b){ + return -1; + } else if(a > b){ + return 1; + } else { + return 0; + } + })); +}; + +/* + Checks if a string is a URL. + @param str String to check. + @returns boolean. +*/ +JOBAD.util.isUrl = function(str){ + var str = String(str); + var expression = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi; + var matches = str.match(new RegExp(expression)); + if(JOBAD.util.isArray(matches)){ + return matches.length > 0; + } else { + return JOBAD.util.startsWith(str, "data:"); + } +}; + +/* + Checks if the string str starts with the string start. +*/ +JOBAD.util.startsWith = function(str, start){ + var str = String(str); + var start = String(start); + return (str.substring(0, start.length) == start); +} + +/* + logical or +*/ +JOBAD.util.lOr = function(){ + var args = []; + for(var i=0;i<arguments.length;i++){ + args.push(arguments[i]); + } + args = JOBAD.util.map(JOBAD.util.flatten(args), JOBAD.util.forceBool); + return (JOBAD.util.indexOf(args, true)!= -1); + +}; + +/* + logical and +*/ +JOBAD.util.lAnd = function(){ + var args = []; + for(var i=0;i<arguments.length;i++){ + args.push(arguments[i]); + } + args = JOBAD.util.map(JOBAD.util.flatten(args), JOBAD.util.forceBool); + return (JOBAD.util.indexOf(args, false)== -1); +}; + +/* + Checks if a jQuery element container contains all of contained. + Similar to jQuery.contains + @param container Container element. + @param contained Contained elements. + @param includeSelf Should container itself be included in the search +*/ +JOBAD.util.containsAll = function(container, contained, includeSelf){ + var container = JOBAD.refs.$(container); + var includeSelf = JOBAD.util.forceBool(includeSelf, false); + return JOBAD.util.lAnd( + JOBAD.refs.$(contained).map(function(){ + return container.is(contained) || (includeSelf && container.find(contained).length > 0); + }).get() + ); +}; + +/* + Loads an external javascript file. + @param url Url(s) of script(s) to load. + @param callback Callback of script to load. + @param scope Scope of callback. + @param preLoadHack. Function to call before laoding a specific file. +*/ +JOBAD.util.loadExternalJS = function(url, callback, scope, preLoadHack){ + var TIMEOUT_CONST = 15000; //timeout for bad links + var has_called = false; + var preLoadHack = JOBAD.util.forceFunction(preLoadHack, function(){}); + + var do_call = function(suc){ + if(has_called){ + return; + } + has_called = true; + + var func = JOBAD.util.forceFunction(callback, function(){}); + var scope = (typeof scope == "undefined")?window:scope; + + func.call(scope, url, suc); + + } + + + if(JOBAD.util.isArray(url)){ + var i=0; + var next = function(urls, suc){ + if(i>=url.length || !suc){ + window.setTimeout(function(){ + do_call(suc); + }, 0); + } else { + JOBAD.util.loadExternalJS(url[i], function(urls, suc){ + i++; + next(urls, suc); + }, scope, preLoadHack); + } + } + + window.setTimeout(function(){ + next("", true); + }, 0); + + return url.length; + } else { + //adapted from: http://www.nczonline.net/blog/2009/07/28/the-best-way-to-load-external-javascript/ + var script = document.createElement("script") + script.type = "text/javascript"; + + if (script.readyState){ //IE + script.onreadystatechange = function(){ + if (script.readyState == "loaded" || + script.readyState == "complete"){ + script.onreadystatechange = null; + window.setTimeout(function(){ + do_call(true); + }, 0); + } + }; + } else { //Others + script.onload = function(){ + window.setTimeout(function(){ + do_call(true); + }, 0); + }; + } + + script.src = JOBAD.util.resolve(url); + preLoadHack(url); + document.getElementsByTagName("head")[0].appendChild(script); + + window.setTimeout(function(){ + do_call(false); + }, TIMEOUT_CONST); + return 1; + } + +} + +/* + Loads an external css file. + @param url Url(s) of css to load. + @param callback Callback of css to load. + @param scope Scope of callback. + @param preLoadHack. Function to call before laoding a specific file. +*/ +JOBAD.util.loadExternalCSS = function(url, callback, scope, preLoadHack){ + var TIMEOUT_CONST = 15000; //timeout for bad links + var has_called = false; + var interval_id, timeout_id; + var preLoadHack = JOBAD.util.forceFunction(preLoadHack, function(){}); + + var do_call = function(suc){ + if(has_called){ + return; + } + has_called = true; + try{ + + } catch(e){ + clearInterval(interval_id); + clearTimeout(timeout_id); + } + + var func = JOBAD.util.forceFunction(callback, function(){}); + var scope = (typeof scope == "undefined")?window:scope; + + func.call(scope, url, suc); + + } + + + if(JOBAD.util.isArray(url)){ + var i=0; + var next = function(urls, suc){ + if(i>=url.length || !suc){ + window.setTimeout(function(){ + do_call(suc); + }, 0); + } else { + JOBAD.util.loadExternalCSS(url[i], function(urls, suc){ + i++; + next(urls, suc); + }, scope, preLoadHack); + } + } + + window.setTimeout(function(){ + next("", true); + }, 0); + + return url.length; + } else { + //adapted from: http://stackoverflow.com/questions/5537622/dynamically-loading-css-file-using-javascript-with-callback-without-jquery + var head = document.getElementsByTagName('head')[0]; + var link = document.createElement('link'); + link.setAttribute( 'href', url ); + link.setAttribute( 'rel', 'stylesheet' ); + link.setAttribute( 'type', 'text/css' ); + var sheet, cssRules; + + interval_id = setInterval(function(){ + try{ + if("sheet" in link){ + if(link.sheet && link.sheet.cssRules.length){ + clearInterval(interval_id); + clearTimeout(timeout_id); + do_call(true); + } + } else { + if(link.styleSheet && link.styleSheet.rules.length > 0){ + clearInterval(interval_id); + clearTimeout(timeout_id); + do_call(true); + } + } + + if(link[sheet] && link[sheet][cssRules].length > 0){ + clearInterval(interval_id); + clearTimeout(timeout_id); + + do_call(true); + } + }catch(e){} + }, 1000); + + timeout_id = setTimeout(function(){ + clearInterval(interval_id); + do_call(false); + }, TIMEOUT_CONST); + + + link.onload = function () { + do_call(true); + } + if (link.addEventListener) { + link.addEventListener('load', function() { + do_call(true); + }, false); + } + + link.onreadystatechange = function() { + var state = link.readyState; + if (state === 'loaded' || state === 'complete') { + link.onreadystatechange = null; + do_call(true); + } + }; + + preLoadHack(url); + head.appendChild(link); + return 1; + } + +} + +/* + escapes a string for HTML + @param str String to escape +*/ +JOBAD.util.escapeHTML = function(s){ + return s.split('&').join('&').split('<').join('<').split('"').join('"'); +} + +/* + Resolves a relative url + @param url Url to resolve + @param base Optional. Base url to use. + @param isDir Optional. If set to true, will return a directory name ending with a slash +*/ +JOBAD.util.resolve = function(url, base, isDir){ + + var resolveWithBase = false; + var baseUrl, oldBase, newBase; + + if(typeof base == "string"){ + resolveWithBase = true; + baseUrl = JOBAD.util.resolve(base, true); + oldBase = JOBAD.refs.$("base").detach(); + newBase = JOBAD.refs.$("<base>").attr("href", baseUrl).appendTo("head"); + } + + var el= document.createElement('div'); + el.innerHTML= '<a href="'+JOBAD.util.escapeHTML(url)+'">x</a>'; + var url = el.firstChild.href; + + if(resolveWithBase){ + newBase.remove(); + oldBase.appendTo("head"); + } + + if( (base === true || isDir === true ) && url[url.length - 1] != "/"){url = url + "/"; } + return url; +} + + +/* + Adds an event listener to a query. + @param query A jQuery element to use as as query. + @param event Event to register trigger for. + @param handler Handler to add + @returns an id for the added handler. +*/ +JOBAD.util.on = function(query, event, handler){ + var query = JOBAD.refs.$(query); + var id = JOBAD.util.UID(); + var handler = JOBAD.util.forceFunction(handler, function(){}); + handler = JOBAD.util.argSlice(handler, 1); + + query.on(event+".core."+id, function(ev){ + var result = JOBAD.util.forceArray(ev.result); + + result.push(handler.apply(this, arguments)); + + return result; + }); + return event+".core."+id; +} + +/* + Adds a one-time event listener to a query. + @param query A jQuery element to use as as query. + @param event Event to register trigger for. + @param handler Handler to add + @returns an id for the added handler. +*/ +JOBAD.util.once = function(query, event, handler){ + var id; + + id = JOBAD.util.on(query, event, function(){ + var result = handler.apply(this, arguments); + JOBAD.util.off(query, id); + }); +} + +/* + Removes an event handler from a query. + @param query A jQuery element to use as as query. + @param id Id of handler to remove. +*/ +JOBAD.util.off = function(query, id){ + var query = JOBAD.refs.$(query); + query.off(id); +} + +/* + Turns a keyup event into a string. +*/ +JOBAD.util.toKeyString = function(e){ + var res = ((e.ctrlKey || e.keyCode == 17 )? 'ctrl+' : '') + + ((e.altKey || e.keyCode == 18 ) ? 'alt+' : '') + + ((e.shiftKey || e.keyCode == 16 ) ? 'shift+' : ''); + + var specialKeys = { + 8: "backspace", 9: "tab", 10: "return", 13: "return", 19: "pause", + 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", + 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", + 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", + 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", + 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", + 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 186: ";", 191: "/", + 220: "\\", 222: "'", 224: "meta" + } + + if(!e.charCode && specialKeys[e.keyCode]){ + res += specialKeys[e.keyCode]; + } else { + if(res == "" && event.type == "keypress"){ + return false; + } else { + res +=String.fromCharCode(e.charCode || e.keyCode).toLowerCase(); + } + } + + if(res[res.length-1] == "+"){ + return res.substring(0, res.length - 1); + } else { + return res; + } +}; + +JOBAD.util.onKey = function(cb){ + var uuid = JOBAD.util.UID(); + JOBAD.refs.$(document).on("keydown."+uuid+" keypress."+uuid, function(evt){ + var key = JOBAD.util.toKeyString(evt); + if(!key){ + return; + } + var res = cb.call(undefined, key, evt); + + if(res === false){ + //stop propagnation etc + evt.preventDefault(); + evt.stopPropagation(); + return false; + } + }); + + return "keydown."+uuid+" keypress."+uuid; +} + +/* + Triggers an event on a query. + @param query A jQuery element to use as as query. + @param event Event to trigger. + @param params Parameters to give to the event. +*/ +JOBAD.util.trigger = function(query, event, params){ + + var query = JOBAD.refs.$(query); + + var result; + + var params = JOBAD.util.forceArray(params).slice(0); + params.unshift(event); + + var id = JOBAD.util.UID(); + + query.on(event+"."+id, function(ev){ + result = ev.result; + }) + + query.trigger.apply(query, params); + + query.off(event+"."+id); + + return result; + +} + +/* + Creates a new Event Handler +*/ +JOBAD.util.EventHandler = function(me){ + var handler = {}; + var EventHandler = JOBAD.refs.$("<div>"); + + handler.on = function(event, handler){ + return JOBAD.util.on(EventHandler, event, handler.bind(me)); + }; + + handler.once = function(event, handler){ + return JOBAD.util.once(EventHandler, event, handler.bind(me)); + }; + + handler.off = function(handler){ + return JOBAD.util.off(EventHandler, handler); + }; + + handler.trigger = function(event, params){ + return JOBAD.util.trigger(EventHandler, event, params); + } + + return handler; +} + +/* + Gets the current script origin. +*/ +JOBAD.util.getCurrentOrigin = function(){ + + var scripts = JOBAD.refs.$('script'); + var src = scripts[scripts.length-1].src; + + //if we have an empty src or jQuery is ready, return the location.href + return (src == "" || jQuery.isReady || !src)?location.href:src; +} + +/* + Permute to members of an array. + @param arr Array to permute. + @param a Index of first element. + @param b Index of second element. +*/ +JOBAD.util.permuteArray = function(arr, a, b){ + + var arr = JOBAD.refs.$.makeArray(arr); + + if(!JOBAD.util.isArray(arr)){ + return arr; + } + + var a = JOBAD.util.limit(a, 0, arr.length); + var b = JOBAD.util.limit(b, 0, arr.length); + + var arr = arr.slice(0); + + var old = arr[a]; + arr[a] = arr[b]; + arr[b] = old; + + return arr; +} + +/* + Limit the number x to be between a and b. + +*/ +JOBAD.util.limit = function(x, a, b){ + if(a >= b){ + return (x<b)?b:((x>a)?a:x); + } else { + // b > a + return JOBAD.util.limit(x, b, a); + } +} + + + +//Merge underscore and JOBAD.util namespace +_.mixin(JOBAD.util); +JOBAD.util = _.noConflict(); //destroy the original underscore instance. /* end <util/JOBAD.util.js> */ +/* start <JOBAD.resources.js> */ +/* + JOBAD String Resoucres + JOBAD.resources.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +//Contains license texts etc. +JOBAD.resources = {}; + +/* + Gets an icon resource. + @param icon Icon to get. + @param mappers Optional. Map of icon => real_icon mappings. +*/ +JOBAD.resources.getIconResource = function(icon, mappers){ + var mappers = JOBAD.util.defined(mappers); + if(mappers.hasOwnProperty(icon)){ + icon = mappers[icon]; + } + if(JOBAD.resources.icon.hasOwnProperty(icon)){ + return JOBAD.resources.icon[icon]; + } else if(JOBAD.util.isUrl(icon)){ + return icon; + } else { + JOBAD.console.warn("Can't find icon resource: '"+icon+"' does not match any resource name. ") + return JOBAD.resources.icon["error"]; + } +} + +/* + Gets a text resource. + @param text Text Resource to get. +*/ +JOBAD.resources.getTextResource = function(text){ + if(JOBAD.resources.text.hasOwnProperty(text)){ + return JOBAD.resources.text[text]; + } else { + JOBAD.console.warn("Can't find text resource: '"+text+"' does not match any resource name. ") + return "Missing resource: '"+text+"'"; + } +} + +/* + Provide text or icon resources. + @param type Type of resource to provide. + @param name Name of Resource to provide or a resource map. + @param value Resource to provide. +*/ +JOBAD.resources.provide = function(type, name, value){ + if(type != "text" && type != "icon"){ + JOABD.console.warn("First paramater JOBAD.resources.provide must be either 'text' or 'icon'. "); + return; + } + + var data = {}; + + if(JOBAD.util.isObject(name)){ + data = name; + } else { + data[name] = value; + } + + JOBAD.resources[type] = JOBAD.util.extend(JOBAD.util.defined(JOBAD.resources[type]), data); +} + +JOBAD.resources.available = function(type, name){ + if(type != "text" && type != "icon"){ + JOABD.console.warn("First paramater JOBAD.resources.available must be either 'text' or 'icon'. "); + return; + } + return JOBAD.util.defined(JOBAD.resources[type]).hasOwnProperty(name); +} + +/* Standard Resources */ + +// Text Resources +JOBAD.resources.provide("text", { + "gpl_v3_text": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \x3Chttp:\x2F\x2Ffsf.org\x2F\x3E\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and\x2For modify it.\n\n For the developers\' and authors\' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users\' and\nauthors\' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users\' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work\'s\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users\' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work\'s\nusers, your or third parties\' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program\'s source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation\'s users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party\'s predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor\'s \"contributor version\".\n\n A contributor\'s \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor\'s essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient\'s use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others\' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and\x2For new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy\'s\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND\x2FOR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND\x2FOR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n \x3Cone line to give the program\'s name and a brief idea of what it does.\x3E\n Copyright (C) \x3Cyear\x3E \x3Cname of author\x3E\n\n This program is free software: you can redistribute it and\x2For modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see \x3Chttp:\x2F\x2Fwww.gnu.org\x2Flicenses\x2F\x3E.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n \x3Cprogram\x3E Copyright (C) \x3Cyear\x3E \x3Cname of author\x3E\n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c\' for details.\n\nThe hypothetical commands `show w\' and `show c\' should show the appropriate\nparts of the General Public License. Of course, your program\'s commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n\x3Chttp:\x2F\x2Fwww.gnu.org\x2Flicenses\x2F\x3E.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n\x3Chttp:\x2F\x2Fwww.gnu.org\x2Fphilosophy\x2Fwhy-not-lgpl.html\x3E.", + "jquery_license": "Copyright 2013 jQuery Foundation and other contributors\nhttp:\x2F\x2Fjquery.com\x2F\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and\x2For sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "underscore_license": "Copyright (c) 2009-2013 Jeremy Ashkenas, DocumentCloud\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and\x2For sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.", + "jobad_license": "JOBAD - JavaScript API for OMDoc-based Active Documents\n\nCopyright (C) 2013 KWARC Group \x3Ckwarc.info\x3E\n\nJOBAD is free software: you can redistribute it and\x2For modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nJOBAD is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with JOBAD. If not, see \x3Chttp:\x2F\x2Fwww.gnu.org\x2Flicenses\x2F\x3E.", + "bootstrap_license": " Apache License\r\n Version 2.0, January 2004\r\n http:\/\/www.apache.org\/licenses\/\r\n\r\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r\n\r\n 1. Definitions.\r\n\r\n \"License\" shall mean the terms and conditions for use, reproduction,\r\n and distribution as defined by Sections 1 through 9 of this document.\r\n\r\n \"Licensor\" shall mean the copyright owner or entity authorized by\r\n the copyright owner that is granting the License.\r\n\r\n \"Legal Entity\" shall mean the union of the acting entity and all\r\n other entities that control, are controlled by, or are under common\r\n control with that entity. For the purposes of this definition,\r\n \"control\" means (i) the power, direct or indirect, to cause the\r\n direction or management of such entity, whether by contract or\r\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\r\n outstanding shares, or (iii) beneficial ownership of such entity.\r\n\r\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\r\n exercising permissions granted by this License.\r\n\r\n \"Source\" form shall mean the preferred form for making modifications,\r\n including but not limited to software source code, documentation\r\n source, and configuration files.\r\n\r\n \"Object\" form shall mean any form resulting from mechanical\r\n transformation or translation of a Source form, including but\r\n not limited to compiled object code, generated documentation,\r\n and conversions to other media types.\r\n\r\n \"Work\" shall mean the work of authorship, whether in Source or\r\n Object form, made available under the License, as indicated by a\r\n copyright notice that is included in or attached to the work\r\n (an example is provided in the Appendix below).\r\n\r\n \"Derivative Works\" shall mean any work, whether in Source or Object\r\n form, that is based on (or derived from) the Work and for which the\r\n editorial revisions, annotations, elaborations, or other modifications\r\n represent, as a whole, an original work of authorship. For the purposes\r\n of this License, Derivative Works shall not include works that remain\r\n separable from, or merely link (or bind by name) to the interfaces of,\r\n the Work and Derivative Works thereof.\r\n\r\n \"Contribution\" shall mean any work of authorship, including\r\n the original version of the Work and any modifications or additions\r\n to that Work or Derivative Works thereof, that is intentionally\r\n submitted to Licensor for inclusion in the Work by the copyright owner\r\n or by an individual or Legal Entity authorized to submit on behalf of\r\n the copyright owner. For the purposes of this definition, \"submitted\"\r\n means any form of electronic, verbal, or written communication sent\r\n to the Licensor or its representatives, including but not limited to\r\n communication on electronic mailing lists, source code control systems,\r\n and issue tracking systems that are managed by, or on behalf of, the\r\n Licensor for the purpose of discussing and improving the Work, but\r\n excluding communication that is conspicuously marked or otherwise\r\n designated in writing by the copyright owner as \"Not a Contribution.\"\r\n\r\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\r\n on behalf of whom a Contribution has been received by Licensor and\r\n subsequently incorporated within the Work.\r\n\r\n 2. Grant of Copyright License. Subject to the terms and conditions of\r\n this License, each Contributor hereby grants to You a perpetual,\r\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r\n copyright license to reproduce, prepare Derivative Works of,\r\n publicly display, publicly perform, sublicense, and distribute the\r\n Work and such Derivative Works in Source or Object form.\r\n\r\n 3. Grant of Patent License. Subject to the terms and conditions of\r\n this License, each Contributor hereby grants to You a perpetual,\r\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r\n (except as stated in this section) patent license to make, have made,\r\n use, offer to sell, sell, import, and otherwise transfer the Work,\r\n where such license applies only to those patent claims licensable\r\n by such Contributor that are necessarily infringed by their\r\n Contribution(s) alone or by combination of their Contribution(s)\r\n with the Work to which such Contribution(s) was submitted. If You\r\n institute patent litigation against any entity (including a\r\n cross-claim or counterclaim in a lawsuit) alleging that the Work\r\n or a Contribution incorporated within the Work constitutes direct\r\n or contributory patent infringement, then any patent licenses\r\n granted to You under this License for that Work shall terminate\r\n as of the date such litigation is filed.\r\n\r\n 4. Redistribution. You may reproduce and distribute copies of the\r\n Work or Derivative Works thereof in any medium, with or without\r\n modifications, and in Source or Object form, provided that You\r\n meet the following conditions:\r\n\r\n (a) You must give any other recipients of the Work or\r\n Derivative Works a copy of this License; and\r\n\r\n (b) You must cause any modified files to carry prominent notices\r\n stating that You changed the files; and\r\n\r\n (c) You must retain, in the Source form of any Derivative Works\r\n that You distribute, all copyright, patent, trademark, and\r\n attribution notices from the Source form of the Work,\r\n excluding those notices that do not pertain to any part of\r\n the Derivative Works; and\r\n\r\n (d) If the Work includes a \"NOTICE\" text file as part of its\r\n distribution, then any Derivative Works that You distribute must\r\n include a readable copy of the attribution notices contained\r\n within such NOTICE file, excluding those notices that do not\r\n pertain to any part of the Derivative Works, in at least one\r\n of the following places: within a NOTICE text file distributed\r\n as part of the Derivative Works; within the Source form or\r\n documentation, if provided along with the Derivative Works; or,\r\n within a display generated by the Derivative Works, if and\r\n wherever such third-party notices normally appear. The contents\r\n of the NOTICE file are for informational purposes only and\r\n do not modify the License. You may add Your own attribution\r\n notices within Derivative Works that You distribute, alongside\r\n or as an addendum to the NOTICE text from the Work, provided\r\n that such additional attribution notices cannot be construed\r\n as modifying the License.\r\n\r\n You may add Your own copyright statement to Your modifications and\r\n may provide additional or different license terms and conditions\r\n for use, reproduction, or distribution of Your modifications, or\r\n for any such Derivative Works as a whole, provided Your use,\r\n reproduction, and distribution of the Work otherwise complies with\r\n the conditions stated in this License.\r\n\r\n 5. Submission of Contributions. Unless You explicitly state otherwise,\r\n any Contribution intentionally submitted for inclusion in the Work\r\n by You to the Licensor shall be under the terms and conditions of\r\n this License, without any additional terms or conditions.\r\n Notwithstanding the above, nothing herein shall supersede or modify\r\n the terms of any separate license agreement you may have executed\r\n with Licensor regarding such Contributions.\r\n\r\n 6. Trademarks. This License does not grant permission to use the trade\r\n names, trademarks, service marks, or product names of the Licensor,\r\n except as required for reasonable and customary use in describing the\r\n origin of the Work and reproducing the content of the NOTICE file.\r\n\r\n 7. Disclaimer of Warranty. Unless required by applicable law or\r\n agreed to in writing, Licensor provides the Work (and each\r\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r\n implied, including, without limitation, any warranties or conditions\r\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r\n PARTICULAR PURPOSE. You are solely responsible for determining the\r\n appropriateness of using or redistributing the Work and assume any\r\n risks associated with Your exercise of permissions under this License.\r\n\r\n 8. Limitation of Liability. In no event and under no legal theory,\r\n whether in tort (including negligence), contract, or otherwise,\r\n unless required by applicable law (such as deliberate and grossly\r\n negligent acts) or agreed to in writing, shall any Contributor be\r\n liable to You for damages, including any direct, indirect, special,\r\n incidental, or consequential damages of any character arising as a\r\n result of this License or out of the use or inability to use the\r\n Work (including but not limited to damages for loss of goodwill,\r\n work stoppage, computer failure or malfunction, or any and all\r\n other commercial damages or losses), even if such Contributor\r\n has been advised of the possibility of such damages.\r\n\r\n 9. Accepting Warranty or Additional Liability. While redistributing\r\n the Work or Derivative Works thereof, You may choose to offer,\r\n and charge a fee for, acceptance of support, warranty, indemnity,\r\n or other liability obligations and\/or rights consistent with this\r\n License. However, in accepting such obligations, You may act only\r\n on Your own behalf and on Your sole responsibility, not on behalf\r\n of any other Contributor, and only if You agree to indemnify,\r\n defend, and hold each Contributor harmless for any liability\r\n incurred by, or claims asserted against, such Contributor by reason\r\n of your accepting any such warranty or additional liability.\r\n\r\n END OF TERMS AND CONDITIONS", + "jquery_color_license": "Copyright 2013 jQuery Foundation and other contributors,\nhttp:\x2F\x2Fjquery.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and\x2For sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. " +}); + +JOBAD.resources.provide("icon", { + /* All icons are public domain taken from http://openiconlibrary.sourceforge.net/ */ + "warning": "data:image/png;base64,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", + "info": "data:image/png;base64,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", + "error": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwEAYAAAAHkiXEAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAwAAAAMADO7oxXAAAPkklEQVR42u1cW2xcRxn+5uyetffsbvZmr712No7jJo6Tuk6dJk0TipIUkiZNRV4a8RBVVGlFQWqAhzwhHpCQQK1EAwJKRQUPSIUWCRVaEWixCrmVpqSu3U1iJ65d33Zje9d7v549Z3gYjdY+6+OzvsQJiHno5BzP+Xbm+//5559//inw/3JXC7nbHeClpgYAJGnrVgDYu3fnTgA4dKijQxAEYffupiZKKd2ypbYWAJxOs7n8FQCUSgBQKORyABCPh0KEEHLz5o0bqqqqV658/DEAvPfewAAAXL5cKABANnu3x73mAiCE/ffBBwHg8OHjxwkh5IUXOjtNJpPpwAGXKxBYv16WN21qb9+yxW5ft66xsbFREKzWujq3GxBFSbLZAELMZiYESlUVoFSWZRmQ5XQ6kwFyuWh0dhZIJEKhyUlVHRm5dWt4OJ2Ox0OhcFgU+/sVRVF6ev70J0op/fnPe3sB4G9/o5Rh/s8JYN8+AHjqqVOnCCHkRz9av76hwefz+bq69uzZvdtm83o7OrZuJcRkKpVUFQDi8UQCADKZTAYAcjmm3cWiLAOAqrJ2vAiCIACAxSKKAGC1Wq0AYLPZbAClDofNBigKIZQCMzMDAwMDlAaD//73J59kMuPj09MzM9PTr71GKaVnznzwAQD88Y//tQLw+wHgvvvOnCGEkN/+9v77fb76+s7O3bsPHty/32ZzOltaNmwAgJmZaBQApqcjEQAolZg5WVqhlNK5equvw3zm+Hx1dQClHo/TCSSTY2Ojo8BHH/3jH5cuZTLXrs3MRCL9/S+9RCmlTz8dDgPA0NA9L4ADBwDg5MnTpy0WUXzllYce2rdv715Jam7u7t6xQxAIiURmZ+cSP5+4aomu9hu9dmWBEcLMYn291wsAXu+6dcDERG9vf7+q9vZevvzhh9ns2bOyXCo999z58wDw+9+vFl+m1QL62tcA4Ic/fP55r9fj+cEPDh48fvzJJ202r9fv9/sJIWRkZHwcAJiNNiJYS6AR4dq/a3H02pVLJpPNApTG46kUsG5da2tLCyGBQFvbhg0WS0vL5GQ4fPSoKObzhYLD8cknANDTc9cF8K1vEULIr3514oTf39h46tTBg8eOHT1qs9XUyDKz0VNTMzOcEmOiqyV49XH4v9jaoqqJRCoFmM2SJElAS0tn59atouhy3b49NfXgg253JpPNtrZ++CEAvP32mgvg5ElCCPn+97/61YYGn++55/bvP3r00CG73WRKJNJpAEil0ulKk3HnNVkPZ3ntKM3lmMtKqSAAgcC2bW1tFoskTU6Gw1u2lEq5XD4visEgAPzzn3dcAA8/DABf+crp0y6Xy/XSSwcOPPHE4cN2uyDEYslkucMrJXrlmry0dpV/1/anWCwWAUJKJUqB5uZt2zZtslicztHRiYldu4aGCoViMRicnASAmzer5bPqRZgtUM3Nr75qNpvNweCRI8ePHzvmctXWyrKiAEChwNxDo4GvDdFLJXjpOJJksQDFIiDLQE/PO+/8/e+x2De+USopSmcnczCYOBYrVc+A736XEEL+8Icnntiz56GHtm1zu61WSSKEUi3xd9dkGBG9fFwtDlM8QWD7DqfTbrdaa2pstlBoaqqj4/33AeD11414FYwa7NgBAF/+8q5dHo/b/cgjfn9Ly4YNgqCqmUw+Xx6gqi5s641qvpnSezZ6ryVarz/GuPO/54Rr17BKnHS6UADq6zduDAQEYedOp9Ph2LevsxMA9u834tfQBL36KiGEBINPPfX44489tn27w8G8G0pNJrbj1BKx+PNS22kJXiqOsSYvt39aHFWVZSCbFQRFAf78556eS5eCwW9+k1JKmTgWKrozYPt2APjiFzdurKvzeNavt9sdDrsdUFVCTKa7p8nV/97imlztjNTilPEq25tMgCQ5HMxt9XiczkCA8fjoo3o8664Bzz9PCCFnzx45snPnjh1dXZIky6pKCKWCYJrz1VovfuX3a43DdszauryTZrWqsg2dzeZ2Oxw1Nfn8xMTt207nhQsA8Oab2t+pmAEWCwBYrd3dJpMgHDrk9QYCTU2EqCoLgq21JmsJKdfziVDVxZ8r+8nfsyAer1VV73k+TqXAeLtiUVEAp7O52ecjhPH4+OOMVxZMX1QA27YBwBe+4HA0Nvp8pRKQyeRyAKVWqyRVSl6fUD0i5g+wjKPFnf99Jc58PD0cLdGcUD2BGfVHT2BlPJvNbgeAVCqTASSpvt7rVRR+zmEoAOb1PPZYIOD3Nzba7aqaz8/dWJWJXnhglQRrCZovqEoiqsXR4i2Mo8XTwymbEKOZtLAClWsWbVWUZDKbBZqa/P76erudnX986Utavs2VM4AQQh55xOHweFwuQaBUUdggRZH9MAzKG2+88Yb+XwmZX/+3lWz2xIkTJ8rPZQGWR8gEx7xFthYIQkcH41W75lTMAB7Hr611Ou125l4x2603JbVT+N4olWsQC7LpOQHVl4VnVHlmMB4UJZ8vFgGLhXlFnFctWsUMkCQAcLnMZovFYmH+PjNBegTfG8Qvl2hCWP8FgRHIn/UKN2lG3hO3HKJYW2uxADYbpZS63YYCKB92m81zbai2Y3peimC4t17doiiKoijL12z+HccxEojWi9J7r6ocj+GYzYQQUlurFZx5sY5xkZjNc6fY2hKsR9jqmZSF8fUEUjY9CzNWdgoKBe68LNa/CqhSiVJKCwWtZultRNZqDeCEr1TjVyqQQqGvr68PUJR0mp13aL0j1l6WU6lksvwd4zWf1+JXzIBslhBC4nFZzufzeUkSxfkCWKtypzV9uUWWo9FoFCgWWW0yud1uNyAIDofDAZRKs7OzswAhJhMhgCyz85FMhhBCYjFDExQKAcCtW7lcIpFKNTUx+wUIAtuIlQlanQHxKa4lnNf3WtH2iRNOKat5MZkaGtxuoFBIJtNpfjJw65YWr0IA169TSum//pXJxGLx+KOPSpLFUlMjCJTa7S4XUHa7FqISyOWeeeaZZ6oZCMvzKZU+//zzzwFZDoWY8Dnx1R1lGkdDVyeKulQcUVy3zmYDkslYLJVS1YEBxqv2+4o1oK8PAHp6JiZCoenpdBpgQIVCf39//1yTsLD/q7dTVZRYLBYD8vlgMBgEcrmLFy9eBIrF8fHxcea2KUo5ZlTeKc8fmF4cvxxrWvw8QD/2VB2OHp4WRxBYesv09NRUNJpKscy7997T8r3ADACAixfT6enpSMRkopQJQFXj8XgcyOcvXLhwATCZ/H62uWCZZ9zd4qu/qqZSqRSgqsxWqipLHVxp/H3pmntncPTXJFE0mwFCHA6rFcjlpqdjMbN5cBAAWL7dogIoFgEgl/v4Y0VR1Xffvf/+8fFw+Phxm625ub6eEEUZHQ2HAUUZGxsb0+/QcsPCRu1WC8f4uTpBad9bLH6/18tyUiMRSq9eVVVVPXeO8VrpBelum956i1JKX3755s2bN0dGkkmzuaWlqan6qW50wFGJs/B3+qaoOpxqTUa1/TEyhRbLxo0NDcDY2ODg2Fgy+dZbAHD2rB7PugK4dg0ALlwYH5+dTSTGx7NZdtAgCI2NXq9xB7UD0g7M2CZXh2Mk+PKasjIc/fMNVptMfr/HA+TzLHw/Pp5IpNNjYzduAMClS0sWAC+vvEIppadPX7vW23v9ejIpih0dmzbN3YAtb/Ez1uTlLX5LnRFGROspThmPrX1Wa3t7IAB89llf361byeQvf0kppS+8YMSvoQA+/RQA3n+/tzceT6UuX45GJyZu31ZVUezoaG29c6ZHn/DlabLejNLrj7EXxtrX1nZ0BAJALBYKzcyo6tWriUQmc/58tZlyVYfOfvITSil99tmBgb6+gYFkklLmZgmC38/SvFd3qi91RlRrMqo3fYvjiCIzOYDHY7cDw8P9/cPDicTPfgYAX/96tbxWnZjFLkekUmNjqkrpjRvt7VNT0eiTTzY379nT2WmxlEqzs8kkoKosDs6LXvbBct3ByveL46y292Qyud12O2C1dnW1tgKDg+fP9/en0y++WCjI8smTn30GAFevrroAeGFb6sFBdlNFFP3+mZnZ2V27mpr27n3gAYulVIrH02lAUbJZlrhlNHCj56W5t6uNU44Je70OB2C379y5eTMwNHTpUjCYyfzud4lEJvPii+++CwCvvbZUPpedHc1tnMeTzebzmzY5ndFoItHe7vc//PD27RaLqrKURUVJJufeB1iu371S/10PzwjHYlm/vq4OkKTOzo0bgeHhDz64fj2bPXcuGk0mX3/9N78BgDNnlsvjiu8HXLkCAG+/bTZnMrmcw+H1hsORSHe3z7djx+bNoiiK7GhTliOReJwdcbJQRrWEat+vTJONZgQhbCfLCRfF5maPBxgaungxGMxm33wzFkulXn6Z6fp3vrNS/lbthgyPIY2PFwrF4tBQa+vISCh05IjV2tDg8ZjN69Y98EBbWzm/SFFSKZbuokfg6poefYEyd7q2NhCorwfs9l27Nm8GMpl4PJ1WVa7xP/5xLlcoPPvsO+8AwE9/ulq8rZIA+EmBJLHwxOjo+fOqSulf/uL3h0KRSHc3MDMzO+t2u1ybNwcCoihJzG/mZJVKPP9IUeaGfI1NxtIEJQg1NaII1NRs2ODzAQ5Hd/d99wGqWlsrisDo6EcfDQ7mclevDg+Hw9eufe97qkrp00+zGBkLqfH0tfIBrF46WRXMrYx43hGe8aVf79kDAIcPnzoFAN/+tt9fV+d0ejx+f1tbc3NNjd3u93u9hPB8GlmORBIJQJYTiUwGUNV0Opcre1mqOl9QgMkkCIAgsENwQbDZ2Mk2M4Fmc12dw8GeJQlIpycno1FKb98eHg6HC4VwOBpNJmdnf/1rAPjFL9jVI34HjN2R4b5gOaaj974y5rPKAuAaz27iVhKu/559abWyRKW9e48eBYBjx1gKX1eXKNbVuVylktfr87lcNTWS5Hbb7YJgNrP0DrOZaTAnvKxz/OiPLf6yzASZyzFTEo1OTcVixWKpFIkkkyYTC5IFg+fOAcBf/8p0+8oVhscJ1SNW+16vnfGF2zWbAQvX/H81wLQWsNtZCl9nJ8vQ6+pqbyeEkLa25mZKKW1osNkAQJJEkRCewwEAsswNGSNkYgIApqfZZaGREUbwp5+ysPD162yvwm6zlTWZ11oi77kZUAGjmRGcWL2aC077zG8c8GdOMH/P87J5rc2z09sns0tUZY3kd3q0Nd9CcmK1z0aC4r+zBOZWRwB6hS9SWsI5oXo1J15LOMfjtZ4AeNEGHjhBWoHoCYYLQCuIpROtV+6BnDagTKCW4KUKgBe9yI5WALxevhez0vIfxtoBrK4SrsIAAAAldEVYdGNyZWF0ZS1kYXRlADIwMDktMTEtMjhUMjI6NDU6MDItMDc6MDAyI1slAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEwLTAyLTIwVDIzOjI2OjI0LTA3OjAwLsNQ1gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMC0wMS0xMVQwODo1Nzo1MS0wNzowMJmZh9sAAAAydEVYdExpY2Vuc2UAaHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9QdWJsaWNfZG9tYWluP/3qzwAAACV0RVh0bW9kaWZ5LWRhdGUAMjAwOS0xMS0yOFQyMjo0NTowMi0wNzowMG2SLREAAAAZdEVYdFNvdXJjZQBUYW5nbyBJY29uIExpYnJhcnlUz+2CAAAAOnRFWHRTb3VyY2VfVVJMAGh0dHA6Ly90YW5nby5mcmVlZGVza3RvcC5vcmcvVGFuZ29fSWNvbl9MaWJyYXJ5vMit1gAAAHR0RVh0c3ZnOmJhc2UtdXJpAGZpbGU6Ly8vbW50L29ncmUvcHJpdnkvZG9jcy9pY29ucy9vcGVuX2ljb25fbGlicmFyeS1kZXZlbC9pY29ucy90YW5nby9zdmcycG5nL3N0YXR1cy9kaWFsb2ctZXJyb3ItMi5zdmfz1dzHAAAAAElFTkSuQmCC", + "open": "data:image/png;base64,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", + "close": "data:image/png;base64,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" +}); +/* end <JOBAD.resources.js> */ +/* start <JOBAD.repo.js> */ +/* + JOBAD.repo.js - Contains the JOBAD repo implementation + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +var JOBAD_Repo_Urls = {}; //urls per repo +var JOBAD_Repo_Mods = {}; //primary modules + +/* + Marks the current page as a repository page and generates a repository about page. +*/ +JOBAD.repo = function(){ + JOBAD.repo.buildPage("body", "./"); +} + +/* + Builds an information page about a repository. + @param element Element to generate page info in. + @param repo Repository to build page about. + @param callback A Callback; + +*/ +JOBAD.repo.buildPage = function(element, repo, callback){ + + var callback = JOBAD.util.forceFunction(callback, function(){}); + + var body = JOBAD.refs.$("<div class='JOBAD JOBAD_Repo JOBAD_Repo_Body'>").appendTo(JOBAD.refs.$(element).empty()); + + var msgBox = JOBAD.refs.$("<div class='bar'>"); + + msgBox.wrap("<div class='progress'>").parent().wrap("<div class='JOBAD JOBAD_Repo JOBAD_Repo_MsgBox'>").parent().appendTo(body); + + var label = JOBAD.refs.$("<div class='progress-label'>").text("Loading Repository, please wait ...").appendTo(msgBox); + + msgBox.css({ + "width": 0 + }); + + var baseUrl = JOBAD.util.resolve(repo); + baseUrl = baseUrl.substring(0, baseUrl.length - 1); // no slash at the end + + JOBAD.repo.init(baseUrl, function(suc, cache){ + msgBox.css({ + "width": "25%", + }); + + if(!suc){ + label.text("Repository loading failed: "+cache); + return; + } + + var title = cache.name; + var desc = cache.description; + + body.append( + JOBAD.refs.$("<h1 class='JOBAD JOBAD_Repo JOBAD_Repo_Title'>").text(title), + JOBAD.refs.$("<div class='JOBAD JOBAD_Repo JOBAD_Repo_Desc'>").text(desc) + ) + + + var table = JOBAD.refs.$("<table class='JOBAD JOBAD_Repo JOBAD_Repo_Table'>").appendTo(body); + + table.append( + JOBAD.refs.$("<thead>").append( + JOBAD.refs.$("<tr>") + .append( + JOBAD.refs.$("<th>").text("Identifier"), + JOBAD.refs.$("<th>").text("Name"), + JOBAD.refs.$("<th>").text("Author"), + JOBAD.refs.$("<th>").text("Version"), + JOBAD.refs.$("<th>").text("Homepage"), + JOBAD.refs.$("<th>").text("Description"), + JOBAD.refs.$("<th>").text("Module Dependencies"), + JOBAD.refs.$("<th>").text("External JavaScript Dependencies"), + JOBAD.refs.$("<th>").text("External CSS Dependencies") + ).children("th").click(function(){ + JOBAD.UI.sortTableBy(this, "rotate", function(i){ + this.parent().find("span").remove(); + if(i==1){ + this.append("<span class='JOBAD JOBAD_Repo JOBAD_Sort_Ascend'>"); + } else if(i==2){ + this.append("<span class='JOBAD JOBAD_Repo JOBAD_Sort_Descend'>"); + } + }); + return false; + }).end() + ) + ); + + //Init everything + + label.text("Loading module information ...") + + var modules = JOBAD.util.keys(JOBAD_Repo_Urls[baseUrl]); + var count = modules.length; + + var i=0; + + + var next = function(){ + + msgBox.css({ + "width": ""+((25+75*((i+1)/(modules.length)))*100)+"%" + }); + + var name = modules[i]; + + if(i >= modules.length){ + label.text("Finished. "); + msgBox.parent().fadeOut(1000); + callback(body); + return; + } + + label.text("Loading module information ["+(i+1)+"/"+count+"]: \""+name+"\""); + + JOBAD.repo.loadFrom(baseUrl, modules[i], function(suc){ + + if(!suc){ + table.append( + JOBAD.refs.$("<tr>") + .append( + JOBAD.refs.$("<td></td>").text(name), + "<td colspan='7'>Loading failed: Timeout</td>" + ).css("color", "red") + ); + } else if(typeof moduleList[name] == "undefined"){ + table.append( + JOBAD.refs.$("<tr>") + .append( + JOBAD.refs.$("<td></td>").text(name), + "<td colspan='7'>Loading failed: Module specification incorrect. </td>" + ).css("color", "red") + ); + } else { + var info = moduleList[name].info; + + var row = JOBAD.refs.$("<tr>").appendTo(table); + + //id + JOBAD.refs.$("<td></td>").text(info.identifier).appendTo(row); + + //name + JOBAD.refs.$("<td></td>").text(info.title).appendTo(row); + + //author + JOBAD.refs.$("<td></td>").text(info.author).appendTo(row); + + //version + if(info.version !== ""){ + JOBAD.refs.$("<td></td>").text(info.version).appendTo(row); + } else { + JOBAD.refs.$("<td><span class='JOBAD JOBAD_Repo JOBAD_Repo_NA'></span></td>").appendTo(row); + } + + //homepage + if(typeof info.url == "string"){ + JOBAD.refs.$("<td></td>").append( + JOBAD.refs.$("<a>").text(info.url).attr("href", info.url).attr("target", "_blank").button() + ).appendTo(row); + } else { + JOBAD.refs.$("<td><span class='JOBAD JOBAD_Repo JOBAD_Repo_NA'></span></td>").appendTo(row); + } + + //description + JOBAD.refs.$("<td></td>").text(info.description).appendTo(row); + + + //dependencies (internal) + var deps = info.dependencies; + + if(deps.length == 0){ + JOBAD.refs.$("<td></td>").text("(None)").appendTo(row); + } else { + var cell = JOBAD.refs.$("<td></td>").appendTo(row); + for(var j=0;j<deps.length;j++){ + cell.append("\""); + if(JOBAD.util.indexOf(modules, deps[j]) == -1){ + cell.append( + JOBAD.refs.$("<span>").addClass("JOBAD JOBAD_Repo JOBAD_Repo_Dependency JOBAD_Repo_Dependency_NotFound") + .text("\""+deps[j]+"\"") + ) + } else { + cell.append( + JOBAD.refs.$("<span>").addClass("JOBAD JOBAD_Repo JOBAD_Repo_Dependency JOBAD_Repo_Dependency_Found") + .text(deps[j]) + ) + } + cell.append("\""); + if(j != deps.length - 1 ){ + cell.append(" , "); + } + } + } + + var edeps = info.externals.js; + + if(edeps.length == 0){ + JOBAD.refs.$("<td></td>").text("(None)").appendTo(row); + } else { + var cell = JOBAD.refs.$("<td></td>").appendTo(row); + for(var j=0;j<edeps.length;j++){ + cell.append( + "\"", + JOBAD.refs.$("<span>") + .addClass("JOBAD JOBAD_Repo JOBAD_Repo_External_Dependency") + .text(edeps[j]), + "\"" + ); + + if(j != edeps.length - 1 ){ + cell.append(" , "); + } + } + } + + var edeps = info.externals.css; + + if(edeps.length == 0){ + JOBAD.refs.$("<td></td>").text("(None)").appendTo(row); + } else { + var cell = JOBAD.refs.$("<td></td>").appendTo(row); + for(var j=0;j<edeps.length;j++){ + cell.append( + "\"", + JOBAD.refs.$("<span>") + .addClass("JOBAD JOBAD_Repo JOBAD_Repo_External_Dependency") + .text(edeps[j]), + "\"" + ); + + if(j != edeps.length - 1 ){ + cell.append(" , "); + } + } + } + + } + + delete moduleList[name]; + i++; + next(); + }) + }; + + next(); + }) +} + +var repo_is_initing = false; + +/* + Register a given set of repositories + @param baseUrl Base urls of the repositories + @param callback Callback on success / failure +*/ +JOBAD.repo.init = function(baseUrl, callback){ + + var callback = JOBAD.util.forceFunction(callback, function(){}); + + if(JOBAD.util.isArray(baseUrl)){ + if(baseUrl.length == 0){ + return callback(true); + } else { + var now = baseUrl[0]; + var next = baseUrl.slice(1); + + return JOBAD.repo.init(now, function(){ + JOBAD.repo.init(next, callback) + }) + } + } + + if(JOBAD.repo.hasInit(baseUrl)){ + return callback(true); //we already have init + } + + //we have a single item + if(repo_is_initing){ + return false; + } + repo_is_initing = true; + + var baseUrl = JOBAD.util.resolve(baseUrl); + + var repo_cache; + + JOBAD.repo.config = function(obj){ + repo_cache = obj; //cache it + } + + JOBAD.util.loadExternalJS(JOBAD.util.resolve("jobad_repo.js", baseUrl), function(s){ + + delete JOBAD.repo.config; //delete the function again + + if(!s){ + callback(false, "Repository Main File Timeout"); + repo_is_initing = false; + return; + } + + //parse it + + if(!JOBAD.util.isObject(repo_cache)){ + callback(false, "Repository in wrong Format: Not an object"); + repo_is_initing = false; + return; + } + + if(!JOBAD.util.isArray(repo_cache.versions)){ + callback(false, "Repository Spec in wrong Format: Versions missing or not an array. "); + repo_is_initing = false; + return; + } + + + if(JOBAD.util.indexOf(repo_cache.versions, JOBAD.version) == -1){ + callback(false, "Repository incompatible with this version of JOBAD. "); + repo_is_initing = false; + return; + } + + if(!JOBAD.util.isArray(repo_cache.provides)){ + callback(false, "Repository Spec in wrong Format: Modules missing or not an array. "); + repo_is_initing = false; + return; + } + + + var overrides = {}; + + if(JOBAD.util.isObject(repo_cache.at)){ + overrides = repo_cache.at; + } + + var modules = repo_cache.provides.slice(0); //available modules + + JOBAD_Repo_Urls[baseUrl] = {}; //Create a new cache object + + for(var i=0;i<modules.length;i++){ + var key = modules[i]; + //is the url set manually + if(overrides.hasOwnProperty(key)){ + JOBAD_Repo_Urls[baseUrl][key] = JOBAD.util.resolve(overrides[key], baseUrl); + } else { + JOBAD_Repo_Urls[baseUrl][key] = JOBAD.util.resolve(key+".js", baseUrl); + } + + + //register the repo with the modules stuff + if(JOBAD_Repo_Mods.hasOwnProperty(key)){ + JOBAD_Repo_Mods[key].push(baseUrl); + } else { + JOBAD_Repo_Mods[key] = [baseUrl]; + } + } + + repo_is_initing = false; //we are done + callback(true, repo_cache); + }); + +} + +/* + Checks if a repository has been initialised + @param baseUrl Repository to check. +*/ +JOBAD.repo.hasInit = function(baseUrl){ + return JOBAD_Repo_Urls.hasOwnProperty(baseUrl); +} + +/* + Loads modules from a repository. + @param repo Repository to load module from. + @param modules Module to load + @param callback Callback once finished. +*/ +JOBAD.repo.loadFrom = function(repo, modules, callback){ + + var callback = JOBAD.util.forceFunction(callback, function(){}); + var modules = JOBAD.util.forceArray(modules); + var repo = JOBAD.util.resolve(repo); + + JOBAD.repo.init(repo, function(res, msg){ + + //we failed to initialise it + if(!res){ + return callback(false, "Repo init failed: "+msg); + } + + if(!JOBAD.repo.provides(repo, modules)){ + return callback(false, "Modules are not provided by repo. "); + } + + //only load thigns that we don't already have + modules = JOBAD.util.filter(modules, function(mod){ + return !JOBAD.modules.available(mod, false); + }); + + var m2 = JOBAD.util.map(modules, function(mod){ + return JOBAD_Repo_Urls[repo][mod]; + }); + + JOBAD.repo.__currentFile = undefined; + JOBAD.repo.__currentLoad = m2; + JOBAD.repo.__currentRepo = repo; + + JOBAD.util.loadExternalJS(m2, function(suc){ + delete JOBAD.repo.__currentFile; + delete JOBAD.repo.__currentLoad; + delete JOBAD.repo.__currentRepo; + if(suc){ + callback(true) + } else { + callback(false, "Failed to load one or more Modules: Timeout") + } + }, undefined, function(u){ + JOBAD.repo.__currentFile = u; + }); + }); +} + +JOBAD.repo.loadAllFrom = function(repo, callback){ + + var callback = JOBAD.util.forceFunction(callback, function(){}); + var repo = JOBAD.util.resolve(repo); + + JOBAD.repo.init(repo, function(res, msg){ + + //we failed to initialise it + if(!res){ + return callback(false, "Repo init failed: "+msg); + } + + JOBAD.repo.loadFrom(repo, JOBAD.util.keys(JOBAD_Repo_Urls[repo]), callback); + }); +} + +/* + Check if repo provides module + @param repo Repositorie(s) to look in. Optional. + @param module Module(s) to look for. +*/ +JOBAD.repo.provides = function(repo, module){ + + var Repos = JOBAD.util.forceArray(repo); + var Modules = JOBAD.util.forceArray(module); + + if(typeof module == "undefined"){ + Modules = Repos; + Repos = JOBAD.util.keys(JOBAD_Repo_Urls); + } + + return JOBAD.util.lAnd(JOBAD.util.map(Modules, function(mod){ + return JOBAD.util.lOr(JOBAD.util.map(Repos, function(rep){ + //check repo for module safely + var rep = JOBAD.util.resolve(rep); + + return JOBAD.util.indexOf(JOBAD_Repo_Mods[mod], rep) != -1; + })); + })); + +} + +/* + Provide a module + @param modules Modules to provide. + @param repos Additionally to repos already available, check these. Optional. + @param callback Callback to use. + @param provideDependencies Should we provide depndencies? +*/ +JOBAD.repo.provide = function(modules, repos, callback, provideDependencies){ + if(typeof repos == "function"){ + provideDependencies = callback; + callback = repos; + repos = []; + } + + var callback = JOBAD.util.forceFunction(callback, function(){}); + + var modules = JOBAD.util.forceArray(modules); + var i = 0; + var repos = JOBAD.util.forceArray(repos); + var provideDependencies = JOBAD.util.forceBool(provideDependencies, true); + + var load_next = function(){ + if(i >= modules.length){ + return callback(true); + } + + var mod = modules[i]; + + var repo = JOBAD_Repo_Mods[mod][0]; //take the first provider + JOBAD.repo.loadFrom(repo, mod, function(suc, msg){ + if(!suc){ + callback(false, msg); + } else { + if(provideDependencies){ + var deps = moduleList[mod].info.dependencies; + + if(!JOBAD.repo.provides(deps)){ + return callback(false, "Dependencies for module '"+mod+"' are not provided by any repo. ") + } + + modules = JOBAD.util.union(modules, deps); //add dependencies in the end + } + + i++; + load_next(); + } + }) + } + + JOBAD.repo.init(repos, function(suc, msg){ + if(!JOBAD.repo.provides(modules)){ + return callback(false, "Modules are not provided by any repo. "); + } + if(suc){ + load_next(); + } else { + callback(false, msg); + } + }) +}/* end <JOBAD.repo.js> */ +/* start <core/JOBAD.core.modules.js> */ +/* + JOBAD Core Module logic + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + + +JOBAD.ifaces.push(function(me, args){ + + //modules namespace + this.modules = {}; + + //Event namespace + this.Event = JOBAD.util.EventHandler(this); + + /* + Triggers a handable event. + @param evt Name of event to trigger. + @param param Parameter for event. + */ + this.Event.handle = function(evt, param){ + me.Event.trigger("event.handlable", [evt, param]); + } + + /* + Binds a custom Event handler in a module. + @param evt Name of event to biond to. + @param module JOABd.modules.loadedModule Instance to enable binding on. + @param handleName Name of handle function to use. Should be a parameter of the module. + */ + this.Event.bind = function(evt, module, handleName){ + if(module instanceof JOBAD.modules.loadedModule){ + me.Event.on(evt, function(){ + if(module.isActive()){ + var args = [me]; + for(var i=0;i<arguments.length;i++){ + args.push(arguments[i]); + } + module[handleName].apply(module, args); + } + }) + } else { + JOBAD.console.error("Can't bind Event Handler for '"+evt+"': module is not a loadedModuleInstance. ") + } + } + + var InstanceModules = {}; //Modules loaded + var disabledModules = []; //Modules disabled + + var loadQuenue = []; //the quenue of things to load + var loadQuenueIndex = -1; //the loadQuenueIndex + + var loadQuenueOptions = {}; //options Array + var loadQuenueAutoActivate = []; //auto activate + var execQuenue = []; //quenue of exec callbacks + + var loadFail = []; //load failed + + var isQuenueRunning = false; + + /* + runs the load Quenue + */ + var runLoadQuenue = function(){ + isQuenueRunning = true; //we are running + + //run the quenue + loadQuenueIndex++; + if(loadQuenue.length > loadQuenueIndex){ //do we have memebers + var modName = loadQuenue[loadQuenueIndex]; + var options = loadQuenueOptions[modName]; + if(typeof options == "undefined"){ + options = []; + } + doLoad(modName, options, runFinishQuenue); + } else { + runFinishQuenue(function(){ + loadQuenueIndex--; //reset the index + isQuenueRunning = false; //STOP + }); + } + }; + + var runFinishQuenue = function(next){ + window.setTimeout(function(){ + //run the finish quenue + execQuenue = execQuenue.filter(function(m){ + if(me.modules.loaded(m[0])){ + try{ + m[1].call(m[2], me.modules.loadedOK(m[0]), m[0]); + } catch(e){} + return false; + } else { + return true; + } + }); + + window.setTimeout(next, 0); //run the load quenue again + }, 0); + } + + /* + Loads a module + @param module Module to load. + @param options Options to pass to the module + */ + var doLoad = function(module, options){ + var auto_activate = loadQuenueAutoActivate.indexOf(module) != -1; + try{ + InstanceModules[module] = new JOBAD.modules.loadedModule(module, options, me, function(suc, msg){ + if(!suc){ + markLoadAsFailed(module, msg); + } else { + disabledModules.push(module); //we are disabled by default + me.Event.trigger("module.load", [module, options]); + + if(auto_activate){ + me.modules.activate(module); + } + } + runFinishQuenue(runLoadQuenue); + + }); + } catch(e){ + markLoadAsFailed(module, String(e)); + runFinishQuenue(runLoadQuenue); + } + }; + + var markLoadAsFailed = function(module, message){ + loadFail.push(module); + me.Event.trigger("module.fail", [module, message]); + try{ + delete InstanceModules[module]; + } catch(e){} + + JOBAD.console.error("Failed to load module '"+module+"': "+String(message)); + }; + + var properLoadObj = function(obj){ + var res = []; + + if(JOBAD.util.isArray(obj)){ + for(var i=0;i<obj.length;i++){ + var proper = JOBAD.util.forceArray(obj[i]); + + if(typeof proper[1] == "boolean"){ + proper[2] = proper[1]; + proper[1] = []; + } + + res.push(proper); + } + } else { + for(var key in obj){ + res.push([key, obj[key]]); + } + } + + return res; + }; + + /* + Loads a module + @param modules Modules to load + @param config Configuration. + config.ready Callback when ready + config.load Callback on singular load + config.activate Should we automatically activate all modules? Default: True + */ + this.modules.load = function(modules, config, option){ + if(typeof modules == "string"){ + if(JOBAD.util.isArray(config)){ + return me.modules.load([[modules, config]], option); + } else { + return me.modules.load([modules], config, option); + } + } + + config = JOBAD.util.defined(config); + config = (typeof config == "function")?{"ready": config}:config; + config = (typeof config == "booelan")?{"activate": config}:config; + + var ready = JOBAD.util.forceFunction(config.ready, function(){}); + var load = JOBAD.util.forceFunction(config.load, function(){}); + + var activate = JOBAD.util.forceBool(config.activate, true); + + var triggers = []; + + var everything = JOBAD.util.map(properLoadObj(modules), function(m){ + var mod = m[0]; + var opt = m[1]; + var act = m[2]; + + triggers.push(mod); //add to the trigegrs + + if(typeof loadQuenueOptions[mod] == "undefined" && JOBAD.util.isArray(opt)){ + loadQuenueOptions[mod] = opt; + } + + if(typeof act == "undefined"){ + act = activate; + } + + if(act){ + loadQuenueAutoActivate.push(mod); //auto activate + } + + if(!JOBAD.modules.available(mod)){ + markLoadAsFailed(mod, "Module not available. (Did loading fail?)"); + return []; + } + + if(!me.modules.inLoadProcess(mod)){ + var deps = JOBAD.modules.getDependencyList(mod); + if(!deps){ + markLoadAsFailed(mod, "Failed to resolve dependencies (Is a dependent module missing? )"); + return []; + } else { + return deps; + } + } else { + if(act && me.modules.loadedOK(mod) && !me.modules.isActive(mod)){ + me.modules.activate(mod); + } + return []; //it's already in load process + } + }); + + //clean up + everything = JOBAD.util.flatten(everything); + everything = JOBAD.util.union(everything); + triggers = JOBAD.util.union(triggers) + + //register all the callbacks + JOBAD.util.map(triggers, function(m){ + me.modules.once(m, load, me, false); + }); + me.modules.once(triggers, ready, me, false); + + //add them to the quenue and run it + loadQuenue = JOBAD.util.union(loadQuenue, everything); + + if(!isQuenueRunning){ + runLoadQuenue(); + } + } + + /* + Defers a callback until the specefied modules are loaded. + */ + this.modules.once = function(modules, cb, scope, run){ + execQuenue.push([modules, cb, (typeof scope == "undefined")?me:scope]); + + var run = JOBAD.util.forceBool(run, true); + + //if we are inactive run the quenue + if(!isQuenueRunning && run){ + runLoadQuenue(); + } + }; + + /* + Checks if a module is loaded. + @param module Name of the module(s) to check. + @returns boolean + */ + this.modules.loaded = function(module){ + return (me.modules.loadedOK(module) || me.modules.loadedFail(module)); + } + + this.modules.loadedOK = function(module){ + if(JOBAD.util.isArray(module)){ + return JOBAD.util.lAnd(JOBAD.util.map(module, function(m){ + return me.modules.loadedOK(m); + })); + } else { + return InstanceModules.hasOwnProperty(module); + } + } + + this.modules.loadedFail = function(module){ + if(JOBAD.util.isArray(module)){ + return JOBAD.util.lOr(JOBAD.util.map(module, function(m){ + return me.modules.loadedFail(m); + })); + } else { + return (JOBAD.util.indexOf(loadFail, module) != -1); + } + } + + this.modules.inLoadProcess = function(module){ + if(JOBAD.util.isArray(module)){ + return JOBAD.util.lAnd(JOBAD.util.map(module, function(m){ + return me.modules.inLoadProcess(m); + })); + } else { + return (JOBAD.util.indexOf(loadQuenue, module) != -1); + } + }; + + /* + Deactivates a module + @param module Module to be deactivated. + */ + this.modules.deactivate = function(module){ + if(!me.modules.isActive(module)){ + JOBAD.console.warn("Module '"+module+"' is already deactivated. "); + return; + } + disabledModules.push(module); + + InstanceModules[module].onDeactivate(me); + me.Event.trigger("module.deactivate", [InstanceModules[module]]); + me.Event.handle("deactivate", module); + } + + /* + Activates a module if it is not yet actiavted + @param module Module to be activated. + */ + this.modules.activate = function(module){ + + if(me.modules.isActive(module)){ + return false; + } + + var todo = function(){ + if(me.modules.isActive(module)){ + return; + } + + disabledModules = JOBAD.util.without(disabledModules, module); + + var deps = JOBAD.modules.getDependencyList(module); + for(var i=0;i<deps.length-1;i++){ + me.modules.activate(deps[i]); // i am last + } + + + InstanceModules[module].onActivate(me); + me.Event.trigger("module.activate", [InstanceModules[module]]); + me.Event.handle("activate", module); + } + + if(me.Setup.isEnabled()){ + todo(); + } else { + me.Event.once("instance.enable", todo); + } + + return true; + }; + + /* + Checks if a module is active. + @param module Module to check. + */ + this.modules.isActive = function(module){ + return (JOBAD.util.indexOf(disabledModules, module)==-1 && me.modules.loadedOK(module)); + }; + + /* + Checks if a module is inactive. + @param module Module to check. + */ + this.modules.isInActive = function(module){ + return (JOBAD.util.indexOf(disabledModules, module)!=-1 && me.modules.loadedOK(module)); + }; + + /* + Gets the identifiers of all loaded modules. + */ + this.modules.getIdentifiers = function(){ + var keys = []; + for(var key in InstanceModules){ + if(InstanceModules.hasOwnProperty(key)){ + keys.push(key); + } + } + return keys; + }; + + /* + Gets the loaded module with the specefied identifier. + */ + this.modules.getLoadedModule = function(id){ + if(!InstanceModules.hasOwnProperty(id)){ + JOBAD.console.warn("Can't find JOBAD.modules.loadedModule instance of '"+id+"'"); + return; + } + return InstanceModules[id]; + }; + + /* + Iterate over all active modules with callback. + if cb returns false, abort. + @param callback Function to call. + @returns Array of results. + */ + this.modules.iterate = function(callback){ + var res = []; + for(var key in InstanceModules){ + if(InstanceModules.hasOwnProperty(key)){ + if(me.modules.isActive(key)){ + var cb = callback(InstanceModules[key]); + if(!cb){ + return res; + } else { + res.push(cb); + } + } + } + } + return res; + }; + + /* + Iterate over all active modules with callback. Abort once some callback returns false. + @param callback Function to call. + @returns true if no callback returns false, otherwise false. + */ + this.modules.iterateAnd = function(callback){ + for(var key in InstanceModules){ + if(InstanceModules.hasOwnProperty(key)){ + if(me.modules.isActive(key)){ + var cb = callback(InstanceModules[key]); + if(!cb){ + return false; + } + } + } + } + return true; + }; + + + var onDisable = function(){ + var cache = []; + + //cache all the modules + me.modules.iterate(function(mod){ + var name = mod.info().identifier; + cache.push(name); + me.modules.deactivate(name); + return true; + }); + + //reactivate all once setup is called again + me.Event.once("instance.enable", function(){ + for(var i=0;i<cache.length;i++){ + var name = cache[i]; + if(!me.modules.isActive(name)){ + me.modules.activate(name); + } + } + me.Event.once("instance.disable", onDisable); //reregister me + }); + }; + + + this.Event.once("instance.disable", onDisable); + + this.modules = JOBAD.util.bindEverything(this.modules, this); +}); + +JOBAD.modules = {}; +JOBAD.modules.extensions = {}; //Extensions for modules +JOBAD.modules.ifaces = []; //JOABD Module ifaces + +JOBAD.modules.cleanProperties = ["init", "activate", "deactivate", "globalinit", "info"]; + +var moduleList = {}; +var moduleStorage = {}; +var moduleOrigins = {}; + +/* + Registers a new JOBAD module with JOBAD. + @param ModuleObject The ModuleObject to register. + @returns boolean if successfull +*/ +JOBAD.modules.register = function(ModuleObject){ + var moduleObject = JOBAD.modules.createProperModuleObject(ModuleObject); + + if(!moduleObject){ + return false; + } + var identifier = moduleObject.info.identifier; + if(JOBAD.modules.available(identifier)){ + return false; + } else { + //set the origins + if(JOBAD.repo.__currentFile){ + moduleOrigins[identifier] = [JOBAD.repo.__currentFile, JOBAD.repo.__currentLoad, JOBAD.repo.__currentRepo]; //The current origin + } else { + moduleOrigins[identifier] = [JOBAD.util.getCurrentOrigin()]; + } + + //resolving all the relative urls + if(moduleObject.info.url){ + moduleObject.info.url = JOBAD.modules.resolveModuleResourceURL(identifier, moduleObject.info.url); + } + + moduleObject.info.externals.js = JOBAD.util.map(moduleObject.info.externals.js, function(e){ + return JOBAD.modules.resolveModuleResourceURL(identifier, e); + }); + + moduleObject.info.externals.css = JOBAD.util.map(moduleObject.info.externals.css, function(e){ + return JOBAD.modules.resolveModuleResourceURL(identifier, e); + }); + + moduleList[identifier] = moduleObject; + + + moduleStorage[identifier] = {}; + + + return true; + } + + +}; + +/* + Creates a proper Module Object. + @param ModuleObject The ModuleObject to register. + @returns proper Module Object (adding omitted properties etc. Otherwise false. +*/ +JOBAD.modules.createProperModuleObject = function(ModuleObject){ + if(!JOBAD.util.isObject(ModuleObject)){ + return false; + } + + var properObject = + { + "globalinit": function(){}, + "init": function(){}, + "activate": function(){}, + "deactivate": function(){} + }; + + for(var key in properObject){ + if(properObject.hasOwnProperty(key) && ModuleObject.hasOwnProperty(key)){ + var obj = ModuleObject[key]; + if(typeof obj != 'function'){ + return false; + } + properObject[key] = ModuleObject[key]; + } + } + + if(ModuleObject.hasOwnProperty("info")){ + var info = ModuleObject.info; + properObject.info = { + 'version': '', + 'dependencies': [] + }; + + if(info.hasOwnProperty('version')){ + if(typeof info['version'] != 'string'){ + return false; + } + properObject.info['version'] = info['version']; + } + + if(info.hasOwnProperty('externals')){ + if(JOBAD.util.isArray(info["externals"])){ + properObject.info.externals = {"js": info["externals"], "css": []}; + } else if(JOBAD.util.isObject(info["externals"])){ + properObject.info.externals = {} + if(info["externals"].hasOwnProperty("css")){ + if(!JOBAD.util.isArray(info["externals"].css)){ + return false; + } + properObject.info.externals.css = info["externals"].css; + } + if(info["externals"].hasOwnProperty("js")){ + if(!JOBAD.util.isArray(info["externals"].js)){ + return false; + } + properObject.info.externals.js = info["externals"].js; + } + } else { + return false; + } + } else { + properObject.info.externals = {"js":[], "css": []}; + } + + if(info.hasOwnProperty('async')){ + properObject.info.async = JOBAD.util.forceBool(info.async); + } else { + properObject.info.async = false; + } + + if(!properObject.info.async){ + var sync_init = properObject.globalinit; + properObject.globalinit = function(next){ + sync_init(); + window.setTimeout(next, 0); + } + } + + + if(info.hasOwnProperty('hasCleanNamespace')){ + if(info['hasCleanNamespace'] == false){ + properObject.info.hasCleanNamespace = false; + } else { + properObject.info.hasCleanNamespace = true; + } + } else { + properObject.info.hasCleanNamespace = true; + } + + if(info.hasOwnProperty('dependencies')){ + var arr = info['dependencies']; + if(!JOBAD.util.isArray(arr)){ + return false; + } + properObject.info['dependencies'] = arr; + } + + if(info.hasOwnProperty('url')){ + if(!JOBAD.util.isUrl(info.url)){ + return false; + } + properObject.info['url'] = info.url; + } else { + info.url = false; + } + + try{ + JOBAD.util.map(['identifier', 'title', 'author', 'description'], function(key){ + if(info.hasOwnProperty(key)){ + var infoAttr = info[key]; + if(typeof infoAttr != 'string'){ + throw ""; //return false; + } + properObject.info[key] = infoAttr; + } else { + throw ""; //return false; + } + }); + } catch(e){ + return false; + } + + properObject.namespace = {}; + + for(var key in ModuleObject){ + if(ModuleObject.hasOwnProperty(key) && JOBAD.util.indexOf(JOBAD.modules.cleanProperties, key) == -1){ + if(properObject.info.hasCleanNamespace){ + JOBAD.console.warn("Warning: Module '"+properObject.info.identifier+"' says its namespace is clean, but property '"+key+"' found. Check ModuleObject.info.hasCleanNamespace. "); + } else { + properObject.namespace[key] = ModuleObject[key]; + } + } + } + + for(var key in JOBAD.modules.extensions){ + var mod = JOBAD.modules.extensions[key]; + var av = ModuleObject.hasOwnProperty(key); + var prop = ModuleObject[key]; + if(mod.required && !av){ + JOBAD.error("Error: Cannot load module '"+properObject.info.identifier+"'. Missing required core extension '"+key+"'. "); + } + + if(av){ + if(!mod.validate(prop)){ + JOBAD.error("Error: Cannot load module '"+properObject.info.identifier+"'. Core Extension '"+key+"' failed to validate. "); + } + } + + properObject[key] = mod.init(av, prop, ModuleObject, properObject); + + if(typeof mod["onRegister"] == "function"){ + mod.onRegister(properObject[key], properObject, ModuleObject); + } + } + + for(var i=0;i<JOBAD.modules.ifaces.length;i++){ + var mod = JOBAD.modules.ifaces[i]; + properObject = mod[0].call(this, properObject, ModuleObject); + } + + return properObject; + + } else { + return false; + } + +}; + +/* + Checks if a module is available. + @param name The Name to check. + @param checkDeps Optional. Should dependencies be checked? (Will result in an endless loop if circular dependencies exist.) Default false. + @returns boolean. +*/ +JOBAD.modules.available = function(name, checkDeps){ + var checkDeps = (typeof checkDeps == 'boolean')?checkDeps:false; + var selfAvailable = moduleList.hasOwnProperty(name); + if(checkDeps && selfAvailable){ + var deps = moduleList[name].info.dependencies; + for(var i=0;i<deps.length;i++){ + if(!JOBAD.modules.available(deps[i], true)){ + return false; + } + } + return true; + } else { + return selfAvailable; + } +}; + +/* + Gets the origin of a module. + @param name Name of module to get origin from. + @param what what kind of orgin to get. (Optional, "file" or "group", otehrwise "repo")) +*/ +JOBAD.modules.getOrigin = function(name, what){ + var origin = moduleOrigins[name]; + if(JOBAD.util.equalsIgnoreCase(what, "file")){ + return origin[0]; + } else if(JOBAD.util.equalsIgnoreCase(what, "group")){ + return origin[1] || [origin[0]]; + } else { + return origin[2]; + } +} + +/* + Resolves a resource URL for the specefied module. + @param mod Name of module to resolve url for. + @param url Url to resolve. +*/ +JOBAD.modules.resolveModuleResourceURL = function(mod, url){ + var origin = JOBAD.modules.getOrigin(mod, "file"); + origin = origin.substring(0, origin.lastIndexOf('/')); + return JOBAD.util.resolve(url, origin); +} + +/* + Returns an array of dependencies of name including name in such an order, thet they can all be loaded without unresolved dependencies. + @param name The Name to check. + @returns array of strings or false if some module is not available. +*/ +JOBAD.modules.getDependencyList = function(name){ + if(!JOBAD.modules.available(name, true)){ + return false; + } + var depArray = [name]; + var deps = moduleList[name].info.dependencies; + + for(var i=deps.length-1;i>=0;i--){ + depArray = JOBAD.util.union(depArray, JOBAD.modules.getDependencyList(deps[i])); + } + + depArray.reverse(); //reverse it + + return depArray; +}; + +/* + Storage shared accross all module instances. +*/ +JOBAD.modules.globalStore = +{ + "get": function(name, prop){ + if(JOBAD.util.isObject(prop) && !JOBAD.util.isArray(prop)){ + var prop = JOBAD.util.keys(prop); + } + + if(JOBAD.util.isArray(prop)){ + var res = {}; + + JOBAD.util.map(prop, function(key){ + res[key] = JOBAD.modules.globalStore.get(name, key); + }); + + return res; + } + + return moduleStorage[name][prop+"_"]; + }, + "set": function(name, prop, val){ + if(JOBAD.util.isObject(prop) && !JOBAD.util.isArray(prop)){ + var prop = JOBAD.util.keys(prop); + } + + if(JOBAD.util.isArray(prop)){ + + return JOBAD.util.map(prop, function(key){ + return JOBAD.modules.globalStore.set(name, key, prop[key]); + }); + } + + moduleStorage[name][prop+"_"] = val; + + return prop; + }, + "delete": function(name, prop){ + delete moduleStorage[name][prop+"_"]; + }, + "keys": function(name){ + var keys = []; + for(var key in moduleStorage[name]){ + if(moduleStorage[name].hasOwnProperty(key) && key[key.length-1] == "_"){ + keys.push(key.substr(0, key.length-1)); + } + } + return keys; + }, + "getFor": function(name){ + return { + "get": function(prop){ + return JOBAD.modules.globalStore.get(name, prop); + }, + "set": function(prop, val){ + return JOBAD.modules.globalStore.set(name, prop, val); + }, + "delete": function(prop){ + return JOBAD.modules.globalStore["delete"](name, prop); + }, + "keys": function(){ + JOBAD.modules.globalStore.keys(name); + } + }; + } +}; + +/* + Loads a module, assuming the dependencies are already available. + @param name Module to loads + @param args Arguments to pass to the module. + @returns new JOBAD.modules.loadedModule instance. +*/ +JOBAD.modules.loadedModule = function(name, args, JOBADInstance, next){ + + var me = this; + var next = JOBAD.util.forceFunction(next, function(){}); + + if(!JOBAD.modules.available(name)){ + JOBAD.error("Module is not available and cant be loaded. "); + } + + if(!JOBAD.util.isArray(args)){ + var args = []; //we force arguments + } + + this.globalStore = JOBAD.modules.globalStore.getFor(name); + + var storage = {}; + /* + Storage contained per instance of the module. + */ + this.localStore = + { + "get": function(prop){ + if(JOBAD.util.isObject(prop) && !JOBAD.util.isArray(prop)){ + var prop = JOBAD.util.keys(prop); + } + + if(JOBAD.util.isArray(prop)){ + var res = {}; + + JOBAD.util.map(prop, function(key){ + res[key] = storage[key]; + }); + + return res; + } + return storage[prop]; + }, + "set": function(prop, val){ + if(JOBAD.util.isObject(prop) && !JOBAD.util.isArray(prop)){ + var prop = JOBAD.util.keys(prop); + } + + if(JOBAD.util.isArray(prop)){ + + return JOBAD.util.map(prop, function(key){ + storage[key] = prop[key]; + }); + + } + + storage[prop] = val; + return prop; + }, + "delete": function(prop){ + delete storage[name]; + }, + "keys": function(){ + var keys = []; + for(var key in storage){ + if(storage.hasOwnProperty(key)){ + keys.push(key); + } + } + return keys; + } + } + + var ServiceObject = moduleList[name]; + + /* + Information about this module. + */ + this.info = function(){ + return ServiceObject.info; + } + + /* + gets the JOBAD instance bound to this module object + */ + this.getJOBAD = function(){ + return JOBADInstance; + }; + + /* + Gets the origin of this module. + */ + this.getOrigin = function(what){ + return JOBAD.modules.getOrigin(name, what); + } + + + this.isActive = function(){ + return JOBADInstance.modules.isActive(this.info().identifier); + } + + //add JOBADINstance + var params = args.slice(0); + params.unshift(JOBADInstance); + + var limited = {}; //limited this for globalinit + limited.info = ServiceObject.info; + limited.globalStore = this.globalStore; + + if(JOBAD.config.cleanModuleNamespace){ + if(!ServiceObject.info.hasCleanNamespace){ + JOBAD.console.warn("Warning: Module '"+name+"' may have unclean namespace, but JOBAD.config.cleanModuleNamespace is true. "); + } + + } else { + var orgClone = JOBAD.util.clone(ServiceObject.namespace); + + for(var key in orgClone){ + if(!JOBAD.modules.cleanProperties.hasOwnProperty(key) && orgClone.hasOwnProperty(key)){ + this[key] = orgClone[key]; + limited[key] = orgClone[key]; + } + }; + } + + //Init module extensions + for(var key in JOBAD.modules.extensions){ + var mod = JOBAD.modules.extensions[key]; + var val = ServiceObject[key]; + if(typeof mod["onLoad"] == 'function'){ + mod.onLoad.call(this, val, ServiceObject, this); + } + if(JOBAD.util.isArray(mod["globalProperties"])){ + for(var i=0;i<mod["globalProperties"].length;i++){ + var prop = mod["globalProperties"][i]; + limited[prop] = this[prop]; + } + } + } + + //Init module ifaces + for(var i=0;i<JOBAD.modules.ifaces.length;i++){ + var mod = JOBAD.modules.ifaces[i]; + mod[1].call(this, ServiceObject); + } + + //Core events: activate, deactivate + this.onActivate = ServiceObject.activate; + this.onDeactivate = ServiceObject.deactivate; + + this.activate = function(){ + return JOBADInstance.modules.activate(this.info().identifier); + }; + + this.deactivate = function(){ + return JOBADInstance.modules.deactivate(this.info().identifier); + } + + // .setHandler, scoped alias for .Event.bind + this.setHandler = function(evt, handleName){ + this.getJOBAD().Event.bind(evt, me, handleName); + } + + var do_next = function(){ + ServiceObject.init.apply(me, params); + next.call(me, true); + }; + + if(!moduleStorage[name]["init"]){ + moduleStorage[name]["init"] = true; + + for(var key in JOBAD.modules.extensions){ + var mod = JOBAD.modules.extensions[key]; + var val = ServiceObject[key]; + if(typeof mod["onFirstLoad"] == 'function'){ + mod.onFirstLoad(me.globalStore); + } + } + + JOBAD.util.loadExternalCSS(ServiceObject.info.externals.css, function(urls, suc){ + if(!suc){ + next(false, "Can't load external CSS dependencies: Timeout. "); + } else { + JOBAD.util.loadExternalJS(ServiceObject.info.externals.js, function(urls, suc){ + if(!suc){ + next(false, "Can't load external JavaScript dependencies: Timeout. "); + } else { + ServiceObject.globalinit.call(limited, do_next); + } + + }); + } + + }); + + + } else { + do_next(); + } + + +};/* end <core/JOBAD.core.modules.js> */ +/* start <core/JOBAD.core.setup.js> */ +/* + JOBAD Core Event Logic + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + + +//These are special events +//Do not setup these +var SpecialEvents = ["on", "off", "once", "trigger", "bind", "handle"]; + +//preEvent and postEvent Handlers +//will be called for module-style events + +var preEvent = function(me, event, params){ + me.Event.trigger("event.before."+event, [event, params]); +}; + +var postEvent = function(me, event, params){ + me.Event.trigger("event.after."+event, [event, params]); + me.Event.handle(event, params); +}; + + +//Provides custom events for modules +JOBAD.ifaces.push(function(me, args){ + + /* Setup core function */ + /* Setup on an Element */ + + var enabled = false; + + /* + Enables or disables this JOBAD instance. + @returns boolean indicating if the status was changed. + */ + this.Setup = function(){ + if(enabled){ + return me.Setup.disable(); + } else { + return me.Setup.enable(); + } + } + + /* + Checks if this Instance is enabled. + */ + this.Setup.isEnabled = function(){ + return enabled; + }; + + + /* + Calls the function cb if this JOBADINstance is enabled, + otherwise calls it once this JOBADInstance is enabled. + */ + this.Setup.enabled = function(cb){ + var cb = JOBAD.util.forceFunction(cb).bind(me); + + if(enabled){ + cb(); + } else { + me.Event.once("instance.enable", cb); + } + } + + /* + Calls the function cb if this JOBADINstance is disabled, + otherwise calls it once this JOBADInstance is disbaled. + */ + this.Setup.disabled = function(cb){ + var cb = JOBAD.util.forceFunction(cb).bind(me); + + if(!enabled){ + cb(); + } else { + me.Event.once("instance.disable", cb); + } + } + + + /* + Defer an event until JOBAD is enabled. + depracated + */ + this.Setup.deferUntilEnabled = function(func){ + JOBAD.console.warn("deprecated: .Setup.deferUntilEnabled, use .Event.once('instance.enable', callback) instead. "); + me.Event.once("instance.enable", func); + }; + + /* + Defer an even until JOBAD is disabled + */ + this.Setup.deferUntilDisabled = function(func){ + JOBAD.console.warn("deprecated: .Setup.deferUntilDisabled, use .Event.once('instance.disable', callback) instead. "); + me.Event.once("instance.disable", func); + }; + + /* + Enables this JOBAD instance + @returns boolean indicating success. + */ + this.Setup.enable = function(){ + if(enabled){ + return false; + } + + var root = me.element; + + me.Event.trigger("instance.beforeEnable", []); + + for(var key in me.Event){ + if(JOBAD.util.contains(SpecialEvents, key)){ + continue; + } + + try{ + JOBAD.events[key].Setup.enable.call(me, root); + } catch(e){ + JOBAD.console.error("Failed to enable Event '"+key+"': "+e.message); + JOBAD.console.error(e); + } + + } + + enabled = true; //we are enabled; + var res = me.Event.trigger("instance.enable", []); + + return true; + }; + + /* + Disables this JOBAD instance. + @returns boolean indicating success. + */ + this.Setup.disable = function(){ + if(!enabled){ + return false; + } + var root = me.element; + + me.Event.trigger("instance.beforeDisable", []); + + for(var key in JOBAD.events){ + if(JOBAD.util.contains(SpecialEvents, key)){ + continue; + } + if(JOBAD.events.hasOwnProperty(key) && !JOBAD.isEventDisabled(key)){ + try{ + JOBAD.events[key].Setup.disable.call(me, root); + } catch(e){ + JOBAD.console.error("Failed to disable Event '"+key+"': "+e.message); + JOBAD.console.error(e); + } + } + } + + + enabled = false; + me.Event.trigger("instance.disable", []); + + return true; + }; + + //Setup the events + for(var key in JOBAD.events){ + if(JOBAD.events.hasOwnProperty(key) && !JOBAD.isEventDisabled(key)){ + + me.Event[key] = JOBAD.util.bindEverything(JOBAD.events[key].namespace, me); + + (function(){ + var k = key; + var orgResult = me.Event[k].getResult; + me.Event[k].getResult = function(){ + var augmentedResult = me.Event.trigger(k, arguments); //Trigger the event + var realResult = orgResult.apply(this, arguments); + return realResult; + } + })() + + if(typeof JOBAD.events[key].Setup.init == "function"){ + JOBAD.events[key].Setup.init.call(me, me); + } else if(typeof JOBAD.events[key].Setup.init == "object"){ + for(var name in JOBAD.events[key].Setup.init){ + if(JOBAD.events[key].Setup.init.hasOwnProperty(name)){ + if(me.hasOwnProperty(name)){ + JOBAD.console.warn("Setup: Event '"+key+"' tried to override '"+name+"'") + } else { + me[name] = JOBAD.util.bindEverything(JOBAD.events[key].Setup.init[name], me); + } + } + } + } + + + } + } + +}); + + +JOBAD.modules.ifaces.push([ + function(properObject, ModuleObject){ + //Called whenever + for(var key in JOBAD.events){ + if(ModuleObject.hasOwnProperty(key)){ + properObject[key] = ModuleObject[key]; + } + } + return properObject; + }, + function(ServiceObject){ + for(var key in JOBAD.events){ + if(ServiceObject.hasOwnProperty(key)){ + this[key] = ServiceObject[key]; + } else { + this[key] = JOBAD.events[key]["default"]; + } + } + }]); + +/* + Checks if an Event is disabled by the configuration. + @param evtname Name of the event that is disabled. +*/ +JOBAD.isEventDisabled = function(evtname){ + return (JOBAD.util.indexOf(JOBAD.config.disabledEvents, evtname) != -1); +}; + +JOBAD.events = {}; + +//config +JOBAD.config.disabledEvents = []; //Disabled events +JOBAD.config.cleanModuleNamespace = false;//if set to true this.loadedModule instances will not allow additional functions/* end <core/JOBAD.core.setup.js> */ +/* start <ui/JOBAD.ui.js> */ +/* + JOBAD 3 UI Functions + JOBAD.ui.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +// This file contains general JOBAD.UI functions + +//Mouse coordinates +var mouseCoords = [0, 0]; + + +JOBAD.refs.$(document).on("mousemove.JOBADListener", function(e){ + mouseCoords = [e.pageX-JOBAD.refs.$(window).scrollLeft(), e.pageY-JOBAD.refs.$(window).scrollTop()]; +}); + +//UI Namespace. +JOBAD.UI = {} + + +/* + highlights an element +*/ +JOBAD.UI.highlight = function(element, color){ + var element = JOBAD.refs.$(element); + var col; + if(typeof element.data("JOBAD.UI.highlight.orgColor") == 'string'){ + col = element.data("JOBAD.UI.highlight.orgColor"); + } else { + col = element.css("backgroundColor"); + } + + element + .stop().data("JOBAD.UI.highlight.orgColor", col) + .animate({ backgroundColor: (typeof color == 'string')?color:"#FFFF9C"}, 1000); +}; +/* + unhighlights an element. +*/ +JOBAD.UI.unhighlight = function(element){ + var element = JOBAD.refs.$(element); + element + .stop() + .animate({ + backgroundColor: element.data("JOBAD.UI.highlight.orgColor"), + finish: function(){ + element.removeData("JOBAD.UI.highlight.orgColor"); + } + }, 1000); +}; + +/* + Sorts a table. + @param el Table Row Head to sort. + @param sortFunction A function, `ascending`, `descending`, `reset` or `rotate` + @param callback(state) Callback only for rotate state. 0 = originial, 1=ascend, 2=descend +*/ +JOBAD.UI.sortTableBy = function(el, sortFunction, callback){ + //get the table + var el = JOBAD.refs.$(el); + var table = el.closest("table"); //the table + var rows = JOBAD.refs.$("tbody > tr", table); //find the rows + var colIndex = el.parents().children().index(el); //colIndex + + if(!table.data("JOBAD.UI.TableSort.OrgOrder")){ + table.data("JOBAD.UI.TableSort.OrgOrder", rows); + } + + if(typeof sortFunction == "undefined"){ + sortFunction = "rotate"; + } + if(typeof sortFunction == "string"){ + if(sortFunction == "rotate"){ + var now = el.data("JOBAD.UI.TableSort.rotationIndex"); + if(typeof now != "number"){ + now = 0; + } + + now = (now+1) % 3; + + sortFunction = ["reset", "ascending", "descending"][now]; + + el.data("JOBAD.UI.TableSort.rotationIndex", now); + + callback.call(el, now); + } + + if(sortFunction == "ascending"){ + var sortFunction = function(a, b){return (a>b)?1:0; }; + } else if(sortFunction == "descending"){ + var sortFunction = function(a, b){return (a<b)?1:0; }; + } else if(sortFunction == "reset"){ + table.data("JOBAD.UI.TableSort.OrgOrder").each(function(){ + var row = JOBAD.refs.$(this); + row.detach().appendTo(table); + }); + return el; + } + } + + rows.sort(function(a, b){ + var textA = JOBAD.refs.$("td", a).eq(colIndex).text(); + var textB = JOBAD.refs.$("td", b).eq(colIndex).text(); + return sortFunction(textA, textB); + }).each(function(i){ + var row = JOBAD.refs.$(this); + row.detach().appendTo(table); + }) + + return el; +} + +/* + Making Bootstrap scoped. +*/ + +/* + Enables Bootstrap on some element +*/ +JOBAD.refs.$.fn.BS = function(){ + JOBAD.refs.$(this).addClass(JOBAD.config.BootstrapScope); + return this; +} + +JOBAD.UI.BS = function(element){ + return JOBAD.refs.$(element).BS(); +} + +var Bootstrap_hacks = JOBAD.refs.$([]); + +JOBAD.UI.BSStyle = function(element){ + //Remove all the old hacks + Bootstrap_hacks = Bootstrap_hacks.filter(function(){ + var me = JOBAD.refs.$(this); + + if(me.children().length == 0){ + me.remove(); + return false; + } + + return true; + }); + + + var el = JOBAD.refs.$(".modal-backdrop").wrap(JOBAD.refs.$("<div>").BS().addClass("hacked")); + + Bootstrap_hacks = Bootstrap_hacks.add(el.parent()); +}/* end <ui/JOBAD.ui.js> */ +/* start <ui/JOBAD.ui.hover.js> */ +/* + JOBAD 3 UI Functions - Hover Text + JOBAD.ui.hover.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +JOBAD.UI.hover = {} + +JOBAD.UI.hover.config = { + "offsetX": 10, //offset from the mouse in X and Y + "offsetY": 10, + "hoverDelay": 1000 //Delay for showing tooltip after hovering. (in milliseconds) +} + +var hoverActive = false; +var hoverElement = undefined; + +/* + Activates the hover ui which follows the mouse. + @param html HTML to use as content + @param CssClass The CSS class to apply to the hover. + @return true. +*/ +JOBAD.UI.hover.enable = function(html, CssClass){ + hoverActive = true; + hoverElement = JOBAD.refs.$("<div class='JOBAD'>").addClass(CssClass).html(html); + hoverElement.appendTo(JOBAD.refs.$("body")); + + JOBAD.refs.$(document).on("mousemove.JOBAD.UI.hover", function(){ + JOBAD.UI.hover.refresh(); + }); + + JOBAD.UI.hover.refresh(); + + return true; +} + +/* + Deactivates the hover UI if active. + @param element jQuery element to use as hover + @return booelan boolean indicating of the UI has been deactived. +*/ +JOBAD.UI.hover.disable = function(){ + if(!hoverActive){ + return false; + } + + hoverActive = false; + JOBAD.refs.$(document).off("mousemove.JOBAD.UI.hover"); + hoverElement.remove(); +} +/* + Refreshes the position of the hover element if active. + @return nothing. +*/ +JOBAD.UI.hover.refresh = function(){ + if(hoverActive){ + hoverElement + .css("top", Math.min(mouseCoords[1]+JOBAD.UI.hover.config.offsetY, window.innerHeight-hoverElement.outerHeight(true))) + .css("left", Math.min(mouseCoords[0]+JOBAD.UI.hover.config.offsetX, window.innerWidth-hoverElement.outerWidth(true))) + } +}/* end <ui/JOBAD.ui.hover.js> */ +/* start <ui/JOBAD.ui.contextmenu.js> */ +/* + JOBAD 3 UI Functions - Context Menu + JOBAD.ui.contextmenu.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +//Context Menu UI +JOBAD.UI.ContextMenu = {} + +JOBAD.UI.ContextMenu.config = { + 'margin': 20, //margin from page borders + 'width': 250, //menu width + 'radiusConst': 50, //Radius spacing constant + 'radius': 20 //small radius size +}; + +var ContextMenus = JOBAD.refs.$([]); + +/* + Registers a context menu on an element. + @param element jQuery element to register on. + @param demandFunction Function to call to get menu. + @param config Configuration. + config.type Optional. Type of menu to use. 0 => jQuery UI menu, 1 => Pie menu. + config.open Optional. Will be called before the context menu is opened. + config.close Optional. Will be called after the context menu has been closed. + config.callback Optional. Will be called after a menu callback was called. + config.parentMenus Optional. Parent menus not to remove on trigger. + config.element Optional. Force to use this as an element for searching for menus. + config.callBackTarget Optional. Element to use for callback. + config.callBackOrg Optional. Element to use for callback. + config.unbindListener Optional. Element to listen to for unbinds. + config.block Optional. Always block the Browser context menu. + config.stopPropagnate Optional. If set to true, will not propagnate menus (check parents if no menu is available). + @return the jquery element. +*/ +JOBAD.UI.ContextMenu.enable = function(element, demandFunction, config){ + + var element = JOBAD.refs.$(element); + var config = JOBAD.util.defined(config); + + if(typeof demandFunction != 'function'){ + JOBAD.console.warn('JOBAD.UI.ContextMenu.enable: demandFunction is not a function. '); //die + return element; + } + + //Force functions for all of this + var typeFunction = JOBAD.util.forceFunction(config.type); + var onCallBack = JOBAD.util.forceFunction(config.callback, true); + var onOpen = JOBAD.util.forceFunction(config.open, true); + var onShow = JOBAD.util.forceFunction(config.show, true); + var onEmpty = JOBAD.util.forceFunction(config.empty, true); + var onClose = JOBAD.util.forceFunction(config.close, true); + var parents = JOBAD.refs.$(config.parents); + var block = JOBAD.util.forceBool(config.block, false); + var stop = JOBAD.util.forceBool(config.stopPropagnate, false); + + element.on('contextmenu.JOBAD.UI.ContextMenu', function(e){ + //control overrides + + if(e.ctrlKey){ + return true; + } + + //are we hidden => do not trigger + if(JOBAD.util.isHidden(e.target)){ + return false; //we're hidden + } + + //get the targetElement + var targetElement = (config.element instanceof JOBAD.refs.$)?config.element:JOBAD.refs.$(e.target); + var orgElement = targetElement; + + var result = false; + while(true){ + result = demandFunction(targetElement, orgElement); + result = JOBAD.UI.ContextMenu.generateMenuList(result); //generate the menu + if(result.length > 0 || element.is(this) || stop){ + break; + } + targetElement = targetElement.parent(); + } + + + JOBAD.UI.ContextMenu.clear(config.parents); + + //we are empty => allow browser to handle stuff + if(result.length == 0 || !result){ + onEmpty(orgElement); + return !block; + } + + //trigger the open callback + onOpen(element); + + //get the type of the menu + var menuType = typeFunction(targetElement, orgElement); + if(typeof menuType == "undefined"){ + menuType = 0; + } + + // + var cbTarget = JOBAD.util.ifType(config.callBackTarget, JOBAD.refs.$, targetElement); + var oTarget = JOBAD.util.ifType(config.callBackOrg, JOBAD.refs.$, orgElement); + + //create the context menu element + var menuBuild = JOBAD.refs.$("<div>") + .addClass("JOBAD JOBAD_Contextmenu") + .appendTo(JOBAD.refs.$("body")) + .data("JOBAD.UI.ContextMenu.renderData", { + "items": result, + "targetElement": cbTarget, + "orgElement": oTarget, + "coords": mouseCoords.slice(0), + "callback": onCallBack + }); + + + //a handler for closing + var closeHandler = function(e){ + menuBuild + .remove(); + onClose(element); + }; + + + //switch between menu types + if(menuType == 0 || JOBAD.util.equalsIgnoreCase(menuType, 'standard')){ + //build the standard menu + menuBuild + .data("JOBAD.UI.ContextMenu.menuType", "standard") + .append( + JOBAD.UI.ContextMenu.buildContextMenuList( + result, + cbTarget, + oTarget, + onCallBack) + .show() + .dropdown() + ).on('contextmenu', function(e){ + return (e.ctrlKey); + }); + + } else if(menuType == 1 || JOBAD.util.equalsIgnoreCase(menuType, 'radial')){ + + + + //build the radial menu + + var eventDispatcher = JOBAD.refs.$("<span>"); + + JOBAD.refs.$(document).trigger('JOBAD.UI.ContextMenu.unbind'); //close all other menus + + menuBuild + .data("JOBAD.UI.ContextMenu.menuType", "radial") + .append( + JOBAD.UI.ContextMenu.buildPieMenuList(result, + cbTarget, + oTarget, + onCallBack, + mouseCoords[0], + mouseCoords[1] + ) + .find("div") + .click(function(){ + eventDispatcher.trigger('JOBAD.UI.ContextMenu.unbind'); //unbind all the others. + JOBAD.refs.$(this).trigger("contextmenu.JOBAD.UI.ContextMenu"); //trigger my context menu. + return false; + }).end() + ); + + JOBAD.UI.ContextMenu.enable(menuBuild, function(e){ + return JOBAD.refs.$(e).closest("div").data("JOBAD.UI.ContextMenu.subMenuData"); + }, { + "type": 0, + "parents": parents.add(menuBuild), + "callBackTarget": targetElement, + "callBackOrg": orgElement, + "unbindListener": eventDispatcher, + "open": function(){ + eventDispatcher.trigger('JOBAD.UI.ContextMenu.unbind'); //unbind all the others. + }, + "empty": function(){ + eventDispatcher.trigger('JOBAD.UI.ContextMenu.unbind'); + }, + "callback": closeHandler, + "block": true, + "stopPropagnate": stop + }); + } else { + JOBAD.console.warn("JOBAD.UI.ContextMenu: Can't show Context Menu: Unkown Menu Type '"+menuType+"'. ") + return true; + } + + + //set its css and append it to the body + + menuBuild + .BS() //enable Bootstrap on the menu + .css({ + 'width': JOBAD.UI.ContextMenu.config.width, + 'position': 'fixed' + }).css({ + "left": Math.min(mouseCoords[0], window.innerWidth-menuBuild.outerWidth(true)-JOBAD.UI.ContextMenu.config.margin), + "top": Math.min(mouseCoords[1], window.innerHeight-menuBuild.outerHeight(true)-JOBAD.UI.ContextMenu.config.margin) + }) + .on('mousedown', function(e){ + e.stopPropagation();//prevent closemenu from triggering + }); + + onShow(menuBuild, result); + + + //unbind listener + JOBAD.refs.$(document).add(config.unbindListener).add(menuBuild) + .on("JOBAD.UI.ContextMenu.hide", function(){ + menuBuild.hide(); + }) + .on('JOBAD.UI.ContextMenu.unbind', function(e){ + closeHandler(); + JOBAD.refs.$(document).unbind('mousedown.UI.ContextMenu.Unbind JOBAD.UI.ContextMenu.unbind JOBAD.UI.ContextMenu.hide'); + e.stopPropagation(); + ContextMenus = ContextMenus.not(menuBuild); + }); + + JOBAD.refs.$(document) + .one('mousedown.UI.ContextMenu.Unbind', function(){ + JOBAD.UI.ContextMenu.clear(); + }) + + + //add to all ContextMenus + ContextMenus = ContextMenus.add(menuBuild); + + return false; + }); + + return element; + +}; + +/* + Disables the Context Menu. + @param element jQuery element to remove the context menu from. + @return the jquery element. +*/ +JOBAD.UI.ContextMenu.disable = function(element){ + element.off('contextmenu.JOBAD.UI.ContextMenu'); //remove listener + return element; +}; + +/* + Clears all context menus. + @param keep Menus to keep open. +*/ +JOBAD.UI.ContextMenu.clear = function(keep){ + var keepers = ContextMenus.filter(keep); + var clearers = ContextMenus.not(keep).trigger("JOBAD.UI.ContextMenu.unbind").remove(); + ContextMenus = keepers; +}; + + +/* + Builds the menu html element for a standard context menu. + @param items The menu to build. + @param element The element the context menu has been requested on. + @param orgElement The element the context menu call originates from. + @returns the menu element. +*/ +JOBAD.UI.ContextMenu.buildContextMenuList = function(items, element, orgElement, callback){ + + //get callback + var cb = JOBAD.util.forceFunction(callback, function(){}); + + //create ul + var $ul = JOBAD.refs.$("<ul class='JOBAD JOBAD_Contextmenu'>").addClass("dropdown-menu"); + $ul + .attr("role", "menu") + .attr("aria-labelledby", "dropdownMenu"); + + for(var i=0;i<items.length;i++){ + var item = items[i]; + + //create current item + var $li = JOBAD.refs.$("<li>").appendTo($ul); + + //create link + var $a = JOBAD.refs.$("<a href='#' tabindex='-1'>") + .appendTo($li) + .text(item[0]) + .click(function(e){ + return false; //Don't follow link. + }); + + if(item[2] != "none" ){ + $a.prepend( + JOBAD.refs.$("<span class='JOBAD JOBAD_InlineIcon'>") + .css({ + "background-image": "url('"+JOBAD.resources.getIconResource(item[2])+"')" + }) + ) + + } + + if(typeof item[3] == "string"){ + $li.attr("id", item[3]); + } + + (function(){ + if(typeof item[1] == 'function'){ + var callback = item[1]; + + $a.on('click', function(e){ + JOBAD.refs.$(document).trigger('JOBAD.UI.ContextMenu.hide'); + callback(element, orgElement); + cb(element, orgElement); + JOBAD.refs.$(document).trigger('JOBAD.UI.ContextMenu.unbind'); + }); + } else if(item[1] === false){ + $a.parent().addClass("disabled"); + } else { + $li.append( + JOBAD.UI.ContextMenu.buildContextMenuList(item[1], element, orgElement, cb) + ).addClass("dropdown-submenu"); + } + })() + } + return $ul; +}; + +/* + Builds the menu html element for a pie context menu. + @param items The menu to build. + @param element The element the context menu has been requested on. + @param orgElement The element the context menu call originates from. + @returns the menu element. +*/ +JOBAD.UI.ContextMenu.buildPieMenuList = function(items, element, orgElement, callback, mouseX, mouseY){ + //get callback + var cb = JOBAD.util.forceFunction(callback, function(){}); + + //position statics + + var r = JOBAD.UI.ContextMenu.config.radius; + var n = items.length; + var R = n*(r+JOBAD.UI.ContextMenu.config.radiusConst)/(2*Math.PI); + + + //minimal border allowed + var minBorder = R+r+JOBAD.UI.ContextMenu.config.margin; + + //get the reight positions + var x = mouseX; + if(x < minBorder){ + x = minBorder; + } else if(x > window.innerWidth - minBorder){ + x = window.innerWidth - minBorder; + } + + var y = mouseY; + if(y < minBorder){ + y = minBorder; + } else if(y > window.innerHeight - minBorder){ + var y = window.innerHeight - minBorder; + } + + + + //create a container + var $container = JOBAD.refs.$("<div class='JOBAD JOBAD_Contextmenu JOBAD_ContextMenu_Radial'>"); + for(var i=0;i<items.length;i++){ + var item = items[i]; + + //compute position + var t = (2*(n-i)*Math.PI) / items.length; + var X = R*Math.sin(t)-r+x; + var Y = R*Math.cos(t)-r+y; + + //create item and position + var $item = JOBAD.refs.$("<div>").appendTo($container) + .css({ + "top": y-r, + "left": x-r, + "height": 2*r, + "width": 2*r + }).addClass("JOBAD JOBAD_Contextmenu JOBAD_ContextMenu_Radial JOBAD_ContextMenu_RadialItem") + + $item.animate({ + "deg": 360, + "top": Y, + "left": X + }, { + "duration": 400, + "step": function(d, prop) { + if(prop.prop == "deg"){ + $container.find(".JOBAD_ContextMenu_RadialItem").css({transform: 'rotate(' + d + 'deg)'}) + } + } + }); + + $item.append( + JOBAD.refs.$("<img src='"+JOBAD.resources.getIconResource(item[2], {"none": "warning"})+"'>") + .width(2*r) + .height(2*r) + ); + + if(typeof item[3] == "string"){ + $item.attr("id", item[3]); + } + + (function(){ + var text = JOBAD.refs.$("<span>").text(item[0]); + if(typeof item[1] == 'function'){ + var callback = item[1]; + + $item.click(function(e){ + JOBAD.UI.hover.disable(); + JOBAD.refs.$(document).trigger('JOBAD.UI.ContextMenu.hide'); + callback(element, orgElement); + cb(element, orgElement); + JOBAD.refs.$(document).trigger('JOBAD.UI.ContextMenu.unbind'); + }); + } else if(item[1] === false){ + $item.addClass("JOBAD_ContextMenu_Radial_Disabled"); + } else { + $item.data("JOBAD.UI.ContextMenu.subMenuData", item[1]); + } + + $item.hover(function(){ + JOBAD.UI.hover.enable(text, "JOBAD_Hover"); + }, function(){ + JOBAD.UI.hover.disable(); + }) + })() + } + + return $container; +}; + + +/* + Generates a list menu representation from an object representation. + @param menu Menu to generate. + @returns the new representation. +*/ +JOBAD.UI.ContextMenu.generateMenuList = function(menu){ + var DEFAULT_ICON = "none"; + if(typeof menu == 'undefined'){ + return []; + } + + if(menu === false){ + return []; + } + + var generateMenuItem = function(v){ + if(typeof v == "function" || v === false){ + return v; + } else { + return JOBAD.UI.ContextMenu.generateMenuList(v); + } + }; + + var generateMenuConfig = function(a, b){ + var config = { + "icon": DEFAULT_ICON, + "id": false + }; + + var a = JOBAD.util.defined(a); + var b = JOBAD.util.defined(b); + + if(typeof a == "string"){ + config["icon"] = a; + } else if(JOBAD.util.isObject(a)){ + if(typeof a.icon == "string"){ + config["icon"] = a.icon; + } + if(typeof a["id"] == "string"){ + config["id"] = a["id"]; + } + return config; + } + + if(typeof b == "string"){ + config["id"] = b; + } else if(JOBAD.util.isObject(b)){ + if(typeof b.icon == "string"){ + config["icon"] = b.icon; + } + if(typeof b["id"] == "string"){ + config["id"] = b["id"]; + } + } + + + return config; + } + + var res = []; + if(JOBAD.util.isArray(menu)){ + //We have an array as the menu + //=> generate an object style representation + var newmenu = {}; + + for(var i=0;i<menu.length;i++){ + var key = menu[i][0]; + var val = menu[i].slice(1); + + newmenu[key] = val; + } + + return (JOBAD.UI.ContextMenu.generateMenuList(newmenu)); + } else { + for(var key in menu){ + if(menu.hasOwnProperty(key)){ + var val = menu[key]; + + if(JOBAD.util.isArray(val)){ + //we have an array + //check got everything individually + if(val.length == 0){ + //nothing here, lets disable it + res.push([key, false, DEFAULT_ICON, false]); + } else if(val.length == 1){ + //we have exactly length 1 + //we should act as if we are only that. + res.push([key, generateMenuItem(val[0]), DEFAULT_ICON, false]); + } else if(val.length == 2 || val.length == 3){ + //we are of length 2 or 3 => generate config + //if we have a string, then treat it as icon, otherwise assume a config style object + + var cfg = generateMenuConfig(val[1], val[2]); //generate the config + + res.push([key, generateMenuItem(val[0]), cfg["icon"], cfg["id"]]); + } else { + //overlength + console.warn("JOBAD.UI.ContextMenu.generateMenuList: menu too long. ") + } + } else { + //we are a single item. + res.push([key, generateMenuItem(val), DEFAULT_ICON, false]); + } + } + } + } + return res; +}; + +/* + Wraps a menu function + @param menu Menu to generate. + @returns the new representation. +*/ +JOBAD.UI.ContextMenu.fullWrap = function(menu, wrapper){ + var menu = JOBAD.UI.ContextMenu.generateMenuList(menu); + var menu2 = []; + for(var i=0;i<menu.length;i++){ + if(typeof menu[i][1] == 'function'){ + (function(){ + var org = menu[i][1]; + menu2.push([menu[i][0], function(){ + return wrapper(org, arguments) + }, menu[i][2]]); + })(); + } else { + menu2.push([menu[i][0], JOBAD.UI.ContextMenu.fullWrap(menu[i][1]), menu[i][2]]); + } + + } + return menu2; +}; + + +JOBAD.UI.ContextMenu.updateMenu = function(callback){ + var callback = (typeof callback == "function")?callback:function(e){return e; }; + + + var menu = $("div.JOBAD_Contextmenu").eq(0); + var renderData = menu.data("JOBAD.UI.ContextMenu.renderData"); + + if(typeof renderData == "undefined"){ + return false; //no data found + } + + if(menu.data("JOBAD.UI.ContextMenu.menuType") == "standard"){ + renderData["items"] = JOBAD.UI.ContextMenu.generateMenuList(callback(renderData["items"])); + + menu.data("JOBAD.UI.ContextMenu.renderData", renderData); + + var build = JOBAD.UI.ContextMenu.buildContextMenuList( + renderData["items"], + renderData["targetElement"], + renderData["orgElement"], + renderData["callback"] + ); + + //standard + menu.empty().append( + build + .show() + .dropdown() + ); + + } else { + return false; //unsupported for now + } + + return menu; +}/* end <ui/JOBAD.ui.contextmenu.js> */ +/* start <ui/JOBAD.ui.sidebar.js> */ +/* + JOBAD 3 UI Functions + JOBAD.ui.sidebar.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +JOBAD.UI.Sidebar = {}; + +JOBAD.UI.Sidebar.config = +{ + "width": 50, //Sidebar Width + "iconDistance": 15 //Minimal Icon distance +}; + +/* + Wraps an element to create a sidebar UI. + @param element The element to wrap. + @param align Alignment of the new sidebar. + @returns the original element, now wrapped. +*/ +JOBAD.UI.Sidebar.wrap = function(element, align){ + + var org = JOBAD.refs.$(element); + + if(org.length > 1){ + var me = arguments.callee; + return org.each(function(i, e){ + me(e, align); + }); + } + + //get alignement and sidebar css class + var sbar_align = (align === 'left')?'left':'right'; + var sbar_class = "JOBAD_Sidebar_"+(sbar_align); + + + //wrap the original element + var orgWrapper = JOBAD.refs.$("<div>").css({"overflow": "hidden"}); + + var sideBarElement = JOBAD.refs.$("<div class='JOBAD "+sbar_class+" JOBAD_Sidebar_Container'>").css({ + "width": JOBAD.UI.Sidebar.config.width + }); + + var container = JOBAD.refs.$("<div class='JOBAD "+sbar_class+" JOBAD_Sidebar_Wrapper'>"); + + org.wrap(orgWrapper); + orgWrapper = org.parent(); + + orgWrapper.wrap(container); + container = orgWrapper.parent(); + + container.prepend(sideBarElement); + + JOBAD.refs.$(window).on("resize.JOBAD.UI.Sidebar", function(){ + var children = sideBarElement.find("*").filter(function(){ + var me = JOBAD.refs.$(this); + return me.data("JOBAD.UI.Sidebar.isElement")===true; + }); + var cs = []; + children.each(function(i, e){ + var e = JOBAD.refs.$(e).detach().appendTo(sideBarElement).addClass("JOBAD_Sidebar_Single"); + var el = JOBAD.util.closest(e.data("JOBAD.UI.Sidebar.orgElement"), function(element){ + //check if an element is visible + return !JOBAD.util.isHidden(element); + }); + var offset = el.offset().top - sideBarElement.offset().top; //offset + e.data("JOBAD.UI.Sidebar.hidden", false); + + + if(e.data("JOBAD.UI.Sidebar.orgElement").is(":hidden") && e.data("JOBAD.UI.Sidebar.hide")){ + e.data("JOBAD.UI.Sidebar.hidden", true); + } else { + e.data("JOBAD.UI.Sidebar.hidden", false); + } + + e.css("top", offset).css(sbar_align, 0); + }); + + //Sort the children in some way + children = JOBAD.refs.$(children.sort(function(a, b){ + a = JOBAD.refs.$(a); + b = JOBAD.refs.$(b); + if(parseInt(a.css("top")) < parseInt(b.css("top"))){ + return -1; + } else if(parseInt(a.css("top")) > parseInt(b.css("top"))){ + return 1; + } else { + return 0; + } + })); + + var prev = children.eq(0); + var me = children.eq(1); + var groups = [[prev]]; + for(var i=1;i<children.length;i++){ + var prevTop = parseInt(prev.css("top")); + var myTop = parseInt(me.css("top")); + if(myTop-(prevTop+prev.height()) < JOBAD.UI.Sidebar.config.iconDistance){ + groups[groups.length-1].push(me); //push me to the last group; we're to close + me = children.eq(i+1); + } else { + groups.push([me]); + prev = me; + me = children.eq(i+1); + } + } + + JOBAD.refs.$(children).detach(); + + sideBarElement.find("*").remove(); //clear the sidebar now + + for(var i=0;i<groups.length;i++){ + (function(){ + //Group them together + var unhidden_count = 0; + var last_unhidden = -1; + for(var j=0;j<groups[i].length;j++){ + if(!groups[i][j].data("JOBAD.UI.Sidebar.hidden")){ + unhidden_count++; + last_unhidden = j; + } + } + + + if(unhidden_count > 1){ + var group = JOBAD.refs.$(groups[i]); + var top = parseInt(JOBAD.refs.$(group[0]).css("top")); + + var par = JOBAD.refs.$("<div class='JOBAD "+sbar_class+" JOBAD_Sidebar_Group'><img src='"+JOBAD.resources.getIconResource("open")+"' width='16' height='16'></div>") + .css("top", top).appendTo(sideBarElement); + + par.on("contextmenu", function(e){return (e.ctrlKey)}); + + var img = par.find("img"); + var state = false; + par.click(function(){ + if(state){ + for(var j=0;j<group.length;j++){ + group[j].hide(); + } + img.attr("src", JOBAD.resources.getIconResource("open")); + } else { + for(var j=0;j<group.length;j++){ + if(!group[j].data("JOBAD.UI.Sidebar.hidden")){ + group[j].show(); + } + } + img.attr("src", JOBAD.resources.getIconResource("close")); + } + state = !state; + + }); + for(var j=0;j<group.length;j++){ + JOBAD.refs.$(group[j]).appendTo(par).hide().removeClass("JOBAD_Sidebar_Single").addClass("JOBAD_Sidebar_group_element") + .css("top", -16) + .css(sbar_align, 20); + } + } else { + if(last_unhidden != -1){ + var single = JOBAD.refs.$(groups[i][last_unhidden]); + sideBarElement.append(JOBAD.refs.$(groups[i][last_unhidden]).removeClass("JOBAD_Sidebar_group_element").show()); + } + + for(var j=0;j<groups[i].length;j++){ + if(j != last_unhidden){ + sideBarElement.append(JOBAD.refs.$(groups[i][j]).removeClass("JOBAD_Sidebar_group_element")); + } + } + + } + })() + } + }) + + JOBAD.refs.$(window).on("resize", function(){ + JOBAD.UI.Sidebar.forceNotificationUpdate(); + }); + + org.data("JOBAD.UI.Sidebar.active", true); + org.data("JOBAD.UI.Sidebar.align", sbar_align); + return org; +}; + +/* + Unwraps an element, destroying the sidebar. + @param The element which has a sidebar. + @returns the original element unwrapped. +*/ +JOBAD.UI.Sidebar.unwrap = function(element){ + var org = JOBAD.refs.$(element); + + if(org.length > 1){ + var me = arguments.callee; + return org.each(function(i, e){ + me(e); + }); + } + + if(!org.data("JOBAD.UI.Sidebar.active")){ + return; + } + + org + .unwrap() + .parent() + .find("div") + .first().remove(); + + org + .removeData("JOBAD.UI.Sidebar.active") + .removeData("JOBAD.UI.Sidebar.align"); + + return org.unwrap(); +}; + +/* + Adds a new notification to the sidebar. Will be auto created if it does not exist. + @param sidebar The element which has a sidebar. + @param element The element to bind the notification to. + @param config The configuration. + config.class: Notificaton class. Default: none. + config.icon: Icon (Default: Based on notification class. + config.text: Text + config.menu: Context Menu + config.trace: Trace the original element on hover? + config.click: Callback on click + config.menuThis: This for menu callbacks + config.hide: Should we hide this element (true) when it is not visible or travel up the dom tree (false, default)? + @param align Alignment of sidebar if it still has to be created. + @returns an empty new notification element. +*/ +JOBAD.UI.Sidebar.addNotification = function(sidebar, element, config, align){ + var config = (typeof config == 'undefined')?{}:config; + + var sbar = JOBAD.refs.$(sidebar); + + if(sbar.data("JOBAD.UI.Sidebar.active") !== true){ + sbar = JOBAD.UI.Sidebar.wrap(sbar, align); //init the sidebar first. + } + + var sbar_class = "JOBAD_Sidebar_"+((sbar.data("JOBAD.UI.Sidebar.align") === 'left')?'left':'right'); + + var child = JOBAD.refs.$(element); + var offset = child.offset().top - sbar.offset().top; //offset + sbar = sbar.parent().parent().find("div").first(); + + var newGuy = JOBAD.refs.$("<div class='JOBAD "+sbar_class+" JOBAD_Sidebar_Notification'>").css({"top": offset}).appendTo(sbar) + .data("JOBAD.UI.Sidebar.orgElement", element) + .data("JOBAD.UI.Sidebar.isElement", true) + .data("JOBAD.UI.Sidebar.hide", config.hide === true); + + //config + if(typeof config.menu != 'undefined'){ + var entries = JOBAD.UI.ContextMenu.fullWrap(config.menu, function(org, args){ + return org.apply(newGuy, [element, config.menuThis]); + }); + JOBAD.UI.ContextMenu.enable(newGuy, function(){return entries;}); + } + + + if(config.hasOwnProperty("text")){ + newGuy.text(config.text); + } + + var icon = false; + var class_color = "#C0C0C0"; + var class_colors = { + "info": "#00FFFF", + "error": "#FF0000", + "warning": "#FFFF00", + "none": "#FFFF00" + }; + + config["class"] = (typeof config["class"] == "string")?config["class"]:"none"; + + if(typeof config["class"] == 'string'){ + var notClass = config["class"]; + + if(JOBAD.resources.available("icon", notClass)){ + icon = JOBAD.resources.getIconResource(notClass); + } + + if(class_colors.hasOwnProperty(notClass)){ + class_color = class_colors[notClass]; + } + } + + if(config.trace){ + //highlight the element + newGuy.hover( + function(){ + JOBAD.UI.Folding.show(element); + JOBAD.UI.highlight(element, class_color); + }, + function(){ + JOBAD.UI.unhighlight(element); + }); + } + + if(typeof config.click == "function"){ + newGuy.click(config.click); + } else { + newGuy.click(function(){ + newGuy.trigger("contextmenu"); + return false; + }) + } + + if(typeof config.icon == 'string'){ + icon = JOBAD.resources.getIconResource(config.icon); + } + if(typeof icon !== 'string'){ + icon = JOBAD.resources.getIconResource("none"); + } + if(typeof icon == 'string'){ + newGuy.html("<img src='"+icon+"' width='16px' height='16px'>") + .hover(function(){ + JOBAD.UI.hover.enable(JOBAD.refs.$("<div>").text(config.text).html(), "JOBAD_Sidebar_Hover JOBAD_Sidebar "+((typeof config["class"] == 'string')?" JOBAD_Notification_"+config["class"]:"")); + }, function(){ + JOBAD.UI.hover.disable(); + }); + } + + return newGuy; +}; + +/* + Forces a sidebar notification position update. + @returns nothing. +*/ +JOBAD.UI.Sidebar.forceNotificationUpdate = function(){ + JOBAD.refs.$(window).trigger("resize.JOBAD.UI.Sidebar"); +}; + +/* + Removes a notification + @param notification The notification element. + @returns nothing. +*/ +JOBAD.UI.Sidebar.removeNotification = function(notification){ + notification.remove(); +};/* end <ui/JOBAD.ui.sidebar.js> */ +/* start <ui/JOBAD.ui.overlay.js> */ +/* + JOBAD 3 UI Functions + JOBAD.ui.overlay.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ +//JOBAD UI Overlay namespace. +JOBAD.UI.Overlay = {}; + +/* + Draws an overlay for an element. + @param element Element to draw overlay for. +*/ +JOBAD.UI.Overlay.draw = function(element){ + + //trigger undraw + var element = JOBAD.refs.$(element); + var overlay_active = true; + + //trigger undraw + JOBAD.UI.Overlay.undraw(element.find("div.ui-widget-overlay").parent()); + + //get offset for element and draw it. + var offset = element.offset() + var overlay_element = JOBAD.refs.$('<div>') + .css({ + "position": "absolute", + "top": offset.top +, "left": offset.left, + "width": JOBAD.refs.$(element).outerWidth(), + "height": JOBAD.refs.$(element).outerHeight() + }) + .addClass('ui-widget-overlay ui-front') + .appendTo(element); + + JOBAD.util.markHidden(overlay_element); //hide the overlay element + + //listen for undraw + element.one("JOBAD.UI.Overlay.undraw", function(){ + overlay_element.remove(); + overlay_active = false; //preven redrawing + }) + + JOBAD.refs.$(window).one("resize.JOBAD.UI.Overlay", function(){ + if(overlay_active){ + JOBAD.UI.Overlay.draw(element); //redraw me + } + }); + + return overlay_element; +} + +/* + Removes the overlay from an element. + @param element element to remove overlay from. +*/ +JOBAD.UI.Overlay.undraw = function(element){ + return JOBAD.refs.$(element).trigger("JOBAD.UI.Overlay.undraw"); +} + +/* + Readraws all overlays. + */ +JOBAD.UI.Overlay.redraw = function(){ + JOBAD.refs.$(window).trigger("resize.JOBAD.UI.Overlay"); +} +/* end <ui/JOBAD.ui.overlay.js> */ +/* start <ui/JOBAD.ui.folding.js> */ +/* + JOBAD 3 UI Functions + JOBAD.ui.folding.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +//JOAD UI Folding Namespace +JOBAD.UI.Folding = {}; + +//Folding config +JOBAD.UI.Folding.config = { + "placeHolderHeight": 50, //height of the place holder + "placeHolderContent": "<p>Click to unfold me. </p>" //jquery ish stuff in the placeholder; ignored for livePreview mode. +} + +/* + Enables folding on an element + @param element Element to enable folding on. + @param config Configuration. + config.enable Callback on enable. + config.autoFold Fold on init? Default: false. + config.disable Callback on disable + config.fold Callback on folding + config.unfold Callback on unfold + config.stateChange Callback on state change. + config.align Alignment of the folding. Either 'left' (default) or 'right'. + config.update Called every time the folding UI is updated. + config.height Height fo the preview / replacement element. Leave empyt to assume default. + config.livePreview Enable livePreview, shows a preview of the element instead of a replacement div. Default: false. + config.preview String or function which describes the element(s). Will be used as preview text. Optional. +*/ + +JOBAD.UI.Folding.enable = function(e, c){ + + var results = JOBAD.refs.$(e).each(function(i, element){ + var element = JOBAD.refs.$(element); + + //check if we are already enabled + if(element.data("JOBAD.UI.Folding.enabled")){ + JOBAD.console.log("Can't enable folding on element: Folding already enabled. "); + return; + } + + var config = JOBAD.util.clone(JOBAD.util.defined(c)); + var went_deeper = false; + + if(typeof config == "undefined"){ + config = {}; + } + + //normalise config properties + config.autoFold = (typeof config.autoFold == 'boolean')?config.autoFold:false; + config.autoRender = JOBAD.util.forceBool(config.autoRender, true); + config.enable = (typeof config.enable == 'function')?config.enable:function(){}; + config.disable = (typeof config.disable == 'function')?config.disable:function(){}; + config.fold = (typeof config.fold == 'function')?config.fold:function(){}; + config.unfold = (typeof config.unfold == 'function')?config.unfold:function(){}; + config.stateChange = (typeof config.stateChange == 'function')?config.stateChange:function(){}; + config.update = (typeof config.update == 'function')?config.update:function(){} + config.align = (config.align == "right")?"right":"left"; + config.height = (typeof config.height == "number")?config.height:JOBAD.UI.Folding.config.placeHolderHeight; + + + if(typeof config.preview == "undefined"){ + config.preview = function(){return JOBAD.UI.Folding.config.placeHolderContent;}; + } else { + if(typeof config.preview !== "function"){ + //scope to keeo variables intatc + (function(){ + var old_preview = config.preview; + config.preview = function(){return old_preview; } + })(); + } + } + + config.livePreview = (typeof config.livePreview == "boolean")?config.livePreview:false; + + //Folding class + var folding_class = "JOBAD_Folding_"+config.align; + + var wrapper = JOBAD.refs.$("<div class='JOBAD "+folding_class+" JOBAD_Folding_Wrapper'>"); + + //spacing + var spacer = JOBAD.refs.$("<div class='JOBAD "+folding_class+" JOBAD_Folding_Spacing'></div>").insertAfter(element); + + element.wrap(wrapper); + wrapper = element.parent(); + + //make the placeHolder + var placeHolder = JOBAD.refs.$("<div class='JOBAD "+folding_class+" JOBAD_Folding_PlaceHolder'>") + .prependTo(wrapper) + .height(JOBAD.UI.Folding.config.placeHolderHeight) + .hide().click(function(){ + JOBAD.UI.Folding.unfold(element); + }); //prepend and hide me + + + var container = JOBAD.refs.$("<div class='JOBAD "+folding_class+" JOBAD_Folding_Container'>") + .prependTo(wrapper) + .on("contextmenu", function(e){ + return (e.ctrlKey); + }); + + wrapper + .data("JOBAD.UI.Folding.state", JOBAD.util.forceBool(element.data("JOBAD.UI.Folding.state"), config.autoFold)) + .data("JOBAD.UI.Folding.update", function(){ + JOBAD.UI.Folding.update(element); + }) + .on("JOBAD.UI.Folding.fold", function(event){ + event.stopPropagation(); + if(wrapper.data("JOBAD.UI.Folding.state")){ + //we are already folded + return; + } + //fold me + wrapper.data("JOBAD.UI.Folding.state", true); + //trigger event + config.fold(element); + config.stateChange(element, true); + JOBAD.UI.Folding.update(element); + }) + .on("JOBAD.UI.Folding.unfold", function(event){ + event.stopPropagation(); + + if(!wrapper.data("JOBAD.UI.Folding.state")){ + //we are already unfolded + return; + } + + //unfold me + wrapper.data("JOBAD.UI.Folding.state", false); + //trigger event + config.unfold(element); + config.stateChange(element, false); + JOBAD.UI.Folding.update(element); + }) + .on("JOBAD.UI.Folding.update", config.livePreview? + function(event){ + + event.stopPropagation(); + + element + .unwrap() + + + JOBAD.util.markHidden(element); + + container + .css("height", "") + + if(wrapper.data("JOBAD.UI.Folding.state")){ + element + .wrap( + JOBAD.refs.$("<div style='overflow: hidden; '>").css("height", config.height) + ); + + //we are folded + container.removeClass("JOBAD_Folding_unfolded").addClass("JOBAD_Folding_folded"); + } else { + element.wrap("<div style='overflow: hidden; '>"); + + + //mark me visible + JOBAD.util.markDefault(element); + + //we are unfolded + container.removeClass("JOBAD_Folding_folded").addClass("JOBAD_Folding_unfolded"); + } + + //reset height + container + .height(wrapper.height()); + + config.update(); + } + : + function(event){ + //we dont have life preview; fallback to the old stuff. + //reset first + + element.parent().show() + .end().show(); + + //hide me. + JOBAD.util.markHidden(element); + + container + .css("height", "") + + + if(wrapper.data("JOBAD.UI.Folding.state")){ + //hide the element again + element.parent().hide() + .end().hide(); + + //adjust placeholder height + placeHolder.height(config.height) + .show() + + JOBAD.util.markHidden(placeHolder); //hide it from JOBAD + + //append stuff to the placeholder + placeHolder.empty().append( + config.preview(element) + ) + + //we are folded + container.removeClass("JOBAD_Folding_unfolded").addClass("JOBAD_Folding_folded"); + } else { + //we are going back to the normal state + //hide the placeholder + placeHolder.hide(); + + //we are unfolded + container.removeClass("JOBAD_Folding_folded").addClass("JOBAD_Folding_unfolded"); + + //mark me visible + JOBAD.util.markDefault(element); + } + + container + .height(wrapper.height()); + + config.update(); + }); + + container + .add(spacer) + .click(function(event){ + //fold or unfold goes here + if(wrapper.data("JOBAD.UI.Folding.state")){ + JOBAD.UI.Folding.unfold(element); + } else { + JOBAD.UI.Folding.fold(element); + } + }); + + element + .wrap("<div style='overflow: hidden; '>") + .data("JOBAD.UI.Folding.wrappers", container.add(placeHolder).add(spacer)) + .data("JOBAD.UI.Folding.enabled", true) + .data("JOBAD.UI.Folding.callback", config.disable) + .data("JOBAD.UI.Folding.onStateChange", config.update) + .data("JOBAD.UI.Folding.config", config); + + element.click(function(ev){ + //we are folded + JOBAD.UI.Folding.unfold(); + ev.stopPropagation(); + }); + + config.enable(element); + }); + + JOBAD.UI.Folding.update(e); //update everythign at the ened + + return results; +} + + +/* + Updates a folded element. + @param element Element to update folding on. +*/ + +JOBAD.UI.Folding.updating = false; + +JOBAD.UI.Folding.update = function(elements){ + if(JOBAD.UI.Folding.updating){ + return false; + } else { + var elements = JOBAD.refs.$(elements); + + if(elements.length > 0){ + var updaters = elements.parents().filter("div.JOBAD_Folding_Wrapper"); + } else { + var updaters = JOBAD.refs.$("div.JOBAD_Folding_Wrapper"); + } + JOBAD.UI.Folding.updating = true; + JOBAD.util.orderTree(updaters).each(function(){ + //trigger each one individually. + JOBAD.refs.$(this).trigger("JOBAD.UI.Folding.update"); + }); + JOBAD.UI.Folding.updating = false; + JOBAD.refs.$(window).trigger("JOBAD.UI.Folding.update"); + return true; + } + +} + +/* + Folds an element. + @param element Element to update folding on. +*/ +JOBAD.UI.Folding.fold = function(element){ + var element = JOBAD.refs.$(element); + if(!element.data("JOBAD.UI.Folding.enabled")){ + JOBAD.console.log("Can't fold element: Folding not enabled. "); + return false; + } + element.parent().parent().trigger("JOBAD.UI.Folding.fold"); + return true; +} + +/* + Unfolds an element +*/ +JOBAD.UI.Folding.unfold = function(el){ + JOBAD.refs.$(el) + .each(function(){ + var element = JOBAD.refs.$(this); + if(!element.data("JOBAD.UI.Folding.enabled")){ + JOBAD.console.log("Can't unfold element: Folding not enabled. "); + } + element.parent().parent().trigger("JOBAD.UI.Folding.unfold"); + }); + + return true; +} + +/* + Disables folding on an element + @param element Element to disable folding on. + @param keep Keeps elements hidden if set to true. +*/ +JOBAD.UI.Folding.disable = function(element, keep){ + var element = JOBAD.refs.$(element); + + if(element.length > 1){ + var me = arguments.callee; + return element.each(function(i, e){ + me(e); + }); + } + + if(element.data("JOBAD.UI.Folding.enabled") !== true){ + JOBAD.console.log("Can't disable folding on element: Folding already disabled. "); + return; + } + + //store the state of the current hiding. + element.data("JOBAD.UI.Folding.state", element.data("JOBAD.UI.Folding.wrappers").eq(0).parent().data("JOBAD.UI.Folding.state")?true:false); + + + //do we keep it hidden? + if(keep?false:true){ + JOBAD.UI.Folding.unfold(element); + JOBAD.util.markDefault(element); + element.removeData("JOBAD.UI.Folding.config"); //reset to default. + } + + //call event handlers + element.data("JOBAD.UI.Folding.callback")(element); + element.data("JOBAD.UI.Folding.onStateChange")(element); + + //remove unneccesary elements. + element.data("JOBAD.UI.Folding.wrappers").remove(); + + //remove any overlays. + JOBAD.UI.Overlay.undraw(element.parent()); + + //clear up the last stuff + element + .unwrap() + .unwrap() + .removeData("JOBAD.UI.Folding.callback") + .removeData("JOBAD.UI.Folding.onStateChange") + .removeData("JOBAD.UI.Folding.enabled") + .removeData("JOBAD.UI.Folding.wrappers"); + + return element; +} +/* + Checks if an element is foldable. + @param element element to check. +*/ +JOBAD.UI.Folding.isFoldable = function(element){ + return JOBAD.util.closest(element, function(e){ + return e.data("JOBAD.UI.Folding.enabled"); + }).length > 0; +} +/* + Shows this element if it is folded. +*/ +JOBAD.UI.Folding.show = function(element){ + return JOBAD.refs.$(element).each(function(){ + var folded = JOBAD.refs.$(this).parents().add(JOBAD.refs.$(this)).filter(function(){ + var me = JOBAD.refs.$(this); + return me.data("JOBAD.UI.Folding.enabled")?true:false; + }); + + if(folded.length > 0){ + JOBAD.UI.Folding.unfold(folded.get().reverse()); //unfold + } + }); +}/* end <ui/JOBAD.ui.folding.js> */ +/* start <ui/JOBAD.ui.toolbar.js> */ +/* + JOBAD 3 UI Functions - Toolbar + JOBAD.ui.toolbar.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +JOBAD.UI.Toolbar = {}; + +var Toolbars = JOBAD.refs.$(); + +JOBAD.UI.Toolbar.config = { + "height": 20 //The default toolbar height +}; + +/* + Adds a toolbar to the page and returns a reference to it. +*/ +JOBAD.UI.Toolbar.add = function(){ + var TB = JOBAD.refs.$("<div>").css({ + "width": "100%", + "height": JOBAD.UI.Toolbar.config.height, + }).appendTo("body"); + + Toolbars = Toolbars.add(TB); + JOBAD.UI.Toolbar.update(); + JOBAD.util.markHidden(TB); + TB.on("contextmenu", function(e){ + return e.ctrlKey; + }); + return TB; +} + +/* + Updates all toolbars at the bottom of the page. +*/ +JOBAD.UI.Toolbar.update = JOBAD.util.throttle(function(){ + var pos = 0; + Toolbars = Toolbars.filter(function(){ + var me = JOBAD.refs.$(this); + + if(me.parent().length != 0){ + + me.css({ + "position": "fixed", + "right": 0, + "bottom": pos + }) + + pos += me.height(); + return true; + } else { + return false; + } + }) +}, 300); + +JOBAD.UI.Toolbar.moveUp = function(TB){ + var x = Toolbars.index(TB); + if(x >= 0){ + Toolbars = JOBAD.refs.$(JOBAD.util.permuteArray(Toolbars, x, x+1)); + } + JOBAD.UI.Toolbar.update(); +} + +JOBAD.UI.Toolbar.moveDown = function(TB){ + var x = Toolbars.index(TB); + if(x >= 0){ + Toolbars = JOBAD.refs.$(JOBAD.util.permuteArray(Toolbars, x, x-1)); + } + JOBAD.UI.Toolbar.update(); +}/* end <ui/JOBAD.ui.toolbar.js> */ +/* start <events/JOBAD.sidebar.js> */ +/* + JOBAD 3 Sidebar + JOBAD.sidebar.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + + +JOBAD.Sidebar = {}; +JOBAD.Sidebar.styles = {}; +JOBAD.Sidebar.types = []; +JOBAD.Sidebar.desc = ["Sidebar position"]; + + +JOBAD.Sidebar.registerSidebarStyle = function(styleName, styleDesc, registerFunc, deregisterFunc, updateFunc){ + if(JOBAD.Sidebar.styles.hasOwnProperty(styleName)){ + JOBAD.console.log("Warning: Sidebar Style with name '"+styleName+"' already exists"); + return true; + } + + JOBAD.Sidebar.types.push(styleName); + JOBAD.Sidebar.desc.push(styleDesc); + + JOBAD.Sidebar.styles[styleName] = { + "register": registerFunc, //JOBAD.UI.Sidebar.addNotification + "deregister": deregisterFunc, //JOBAD.UI.Boundbar.removeItem(item); + "update": updateFunc //JOBAD.UI.Sidebar.redraw + }; +}; + +JOBAD.Sidebar.registerSidebarStyle("right", "Right", + JOBAD.util.argWrap(JOBAD.UI.Sidebar.addNotification, function(args){ + args.push("right"); return args; + }), + JOBAD.UI.Sidebar.removeNotification, + function(){ + JOBAD.UI.Sidebar.forceNotificationUpdate(); + if(JOBAD.util.objectEquals(this.Sidebar.PastRequestCache, {})){ + JOBAD.UI.Sidebar.unwrap(this.element); + } + } +); + +JOBAD.Sidebar.registerSidebarStyle("left", "Left", + JOBAD.util.argWrap(JOBAD.UI.Sidebar.addNotification, function(args){ + args.push("left"); return args; + }), + JOBAD.UI.Sidebar.removeNotification, + function(){ + JOBAD.UI.Sidebar.forceNotificationUpdate(); + if(JOBAD.util.objectEquals(this.Sidebar.PastRequestCache, {})){ + JOBAD.UI.Sidebar.unwrap(this.element); + } + } +); + +JOBAD.Sidebar.registerSidebarStyle("none", "Hidden", + function(){return JOBAD.refs.$("<div>"); }, + function(){}, + function(){} +); + + +/* sidebar: SideBarUpdate Event */ +JOBAD.events.SideBarUpdate = +{ + 'default': function(){ + //Does nothing + }, + 'Setup': { + 'init': { + /* Sidebar namespace */ + 'Sidebar': { + 'getSidebarImplementation': function(type){ + return JOBAD.util.bindEverything(JOBAD.Sidebar.styles[type], this); + }, + 'forceInit': function(){ + if(typeof this.Sidebar.ElementRequestCache == 'undefined'){ + this.Sidebar.ElementRequestCache = []; + } + + if(typeof this.Sidebar.Elements == 'undefined'){ + this.Sidebar.Elements = {}; + } + + if(typeof this.Sidebar.PastRequestCache == 'undefined'){ + this.Sidebar.PastRequestCache = {}; + } + + + if(!this.Event.SideBarUpdate.enabled){ + return; + } + + var new_type = this.Config.get("sidebar_type"); + + if(this.Event.SideBarUpdate.type != new_type){ + this.Sidebar.transit(new_type); //update sidebar type + } + }, + 'makeCache': function(){ + var cache = []; + + for(var key in this.Sidebar.PastRequestCache){ + cache.push(this.Sidebar.PastRequestCache[key]); + } + + return cache; + }, + /* + Post-Config-Switching + */ + 'transit': function(to){ + var cache = this.Sidebar.makeCache(); //cache the loaded requests + + //remove all old requests + for(var key in this.Sidebar.Elements){ + this.Sidebar.removeNotificationT(this.Event.SideBarUpdate.type, this.Sidebar.Elements[key], false); + } + + this.Sidebar.redrawT(this.Event.SideBarUpdate.type); //update it one mroe time (this also clears the toolbar) + + + this.Event.SideBarUpdate.type = to; + + + for(var i=0;i<cache.length;i++){ + this.Sidebar.registerNotification(cache[i][0], cache[i][1], false); + } + + this.Sidebar.redrawT(to); //redraw the sidebar + + }, + /* + Redraws the sidebar. + */ + 'redraw': function(){ + if(typeof this.Event.SideBarUpdate.enabled == "undefined"){ + return; //do not run if disabled + } + + this.Sidebar.forceInit(); + + return this.Sidebar.redrawT(this.Event.SideBarUpdate.type); + }, + /* + Redraws the sidebar assuming the specefied type. + */ + 'redrawT': function(type){ + this.Sidebar.redrawing = true; + + var root = this.element; + + var implementation = this.Sidebar.getSidebarImplementation(type); + + for(var i=0;i<this.Sidebar.ElementRequestCache.length;i++){ + var id = this.Sidebar.ElementRequestCache[i][0]; + var element = this.Sidebar.ElementRequestCache[i][1]; + var config = this.Sidebar.ElementRequestCache[i][2]; + + this.Sidebar.Elements[id] = implementation["register"](this.element, element, config) + .data("JOBAD.Events.Sidebar.id", id); + + this.Sidebar.PastRequestCache[id] = [element, config]; + + } + + this.Sidebar.ElementRequestCache = []; //clear the cache + + //update and trigger event + implementation["update"](); + this.Event.SideBarUpdate.trigger(); + + this.Sidebar.redrawing = false; + }, + + /* + Registers a new notification. + @param element Element to register notification on. + @param config + config.class: Notificaton class. Default: none. + config.icon: Icon (Default: Based on notification class. ) + config.text: Text + config.menu: Context Menu + config.trace: Trace the original element on hover? (Ignored for direct) + config.click: Callback on click, Default: Open Context Menu + @param autoRedraw Optional. Should the sidebar be redrawn? (default: true) + @return jQuery element used as identification. + + */ + 'registerNotification': function(element, config, autoRedraw){ + + this.Sidebar.forceInit(); //force an init + + var id = JOBAD.util.UID(); //generate new UID + + var config = (typeof config == 'undefined')?{}:config; + config.menuThis = this; + + this.Sidebar.ElementRequestCache.push([id, JOBAD.refs.$(element), JOBAD.util.clone(config)]); //cache the request. + + if((typeof autoRedraw == 'boolean')?autoRedraw:true){ + this.Sidebar.redraw(); + return this.Sidebar.Elements[id]; + } + + }, + /* + removes a notification. + @param item Notification to remove. + @param autoRedraw Optional. Should the sidebar be redrawn? (default: true) + + */ + 'removeNotification': function(item, autoRedraw){ + this.Sidebar.forceInit(); + if(!this.Event.SideBarUpdate.enabled){ + //we're disabled; just remove it from the cache + var id = item.data("JOBAD.Events.Sidebar.id"); + + for(var i=0;i<this.Sidebar.PastRequestCache.length;i++){ + if(this.Sidebar.PastRequestCache[i][0] == id){ + this.Sidebar.PastRequestCache.splice(i, 1); //remove the element + break; + } + } + } else { + return this.Sidebar.removeNotificationT(this.Event.SideBarUpdate.type, item, autoRedraw); + } + }, + /* + removes a notification assuming the specefied sidebar type. + @param item Notification to remove. + @param autoRedraw Optional. Should the sidebar be redrawn? (default: true) + + */ + 'removeNotificationT': function(type, item, autoRedraw){ + var implementation = this.Sidebar.getSidebarImplementation(type); + + if(item instanceof JOBAD.refs.$){ + var id = item.data("JOBAD.Events.Sidebar.id"); + + implementation["deregister"](item); + + delete this.Sidebar.Elements[id]; + delete this.Sidebar.PastRequestCache[id]; + + if((typeof autoRedraw == 'boolean')?autoRedraw:true){ + this.Sidebar.redrawT(type); //redraw + } + return id; + } else { + JOBAD.error("JOBAD Sidebar Error: Tried to remove invalid Element. "); + } + } + } + }, + 'enable': function(root){ + var me = this; + + this.Event.SideBarUpdate.enabled = true; + this.Event.SideBarUpdate.type = this.Config.get("sidebar_type"); //init the type + this.Sidebar.redraw(); //redraw the sidebar + }, + 'disable': function(root){ + + var newCache = [] + + //remove all old requests + for(var key in this.Sidebar.Elements){ + newCache.push([key, this.Sidebar.PastRequestCache[key][0], this.Sidebar.PastRequestCache[key][1]]); + + this.Sidebar.removeNotification(this.Sidebar.Elements[key], false); + } + + this.Sidebar.redraw(); //redraw it one more time. + + this.Sidebar.ElementRequestCache = newCache; //everything is now hidden + + this.Event.SideBarUpdate.enabled = undefined; + } + }, + 'namespace': + { + + 'getResult': function(){ + if(this.Event.SideBarUpdate.enabled){ + this.modules.iterateAnd(function(module){ + module.SideBarUpdate.call(module, module.getJOBAD()); + return true; + }); + } + }, + 'trigger': function(){ + preEvent(this, "SideBarUpdate", []); + this.Event.SideBarUpdate.getResult(); + postEvent(this, "SideBarUpdate", []); + } + } +};/* end <events/JOBAD.sidebar.js> */ +/* start <events/JOBAD.folding.js> */ +/* + JOBAD 3 Folding + JOBAD.folding.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +JOBAD.ifaces.push(function(){ + var me = this; + + //Folding namespace. + this.Folding = {}; + + /* + Enables Folding on an element. + @param element Element to enable folding on. + @param config Configuration for folding. See JOBAD.UI.Folding.enable. + */ + this.Folding.enable = function(element, config){ + + if(typeof element == "undefined"){ + var element = this.element; + } + + var element = JOBAD.refs.$(element); //TODO: Add support for folding the entire thing. + + if(!this.contains(element)){ + JOABD.console.warn("Can't enable folding on element: Not a member of this JOBADInstance") + return; + } + + this.Event.trigger("folding.enable", [element]); + + if(element.is(this.element)){ + if(element.data("JOBAD.UI.Folding.virtualFolding")){ + element = element.data("JOBAD.UI.Folding.virtualFolding"); + } else { + this.element.wrapInner(JOBAD.refs.$("<div></div>")); + element = this.element.children().get(0); + this.element.data("JOBAD.UI.Folding.virtualFolding", JOBAD.refs.$(element)); + } + + } + + return JOBAD.UI.Folding.enable( + element, + JOBAD.util.extend(JOBAD.util.defined(config), + { + "update": + function(){ + if(!me.Sidebar.redrawing){ + me.Sidebar.redraw(); //redraw the sidebar. + } + } + } + ) + ); + }; + + /* + Disables folding on an element. + @param element Element to disable folding on. + */ + this.Folding.disable = function(element){ + if(typeof element == "undefined"){ + var element = this.element; + } + var element = JOBAD.refs.$(element); + + this.Event.trigger("folding.disable", [element]); + + if(element.data("JOBAD.UI.Folding.virtualFolding")){ + var vElement = element.data("JOBAD.UI.Folding.virtualFolding"); + JOBAD.UI.Folding.disable(vElement); + vElement.replaceWith(vElement.children()); //replace the element completely with the children + return element.removeData("JOBAD.UI.Folding.virtualFolding"); + } else { + return JOBAD.UI.Folding.disable(element); + } + }; + + /* + Checks if folding is enabled on an element. + */ + this.Folding.isEnabled = function(element){ + if(typeof element == "undefined"){ + var element = this.element; + } + var element = JOBAD.refs.$(element); + + if(element.data("JOBAD.UI.Folding.virtualFolding")){ + return element.data("JOBAD.UI.Folding.virtualFolding").data("JOBAD.UI.Folding.enabled")?true:false; + } else { + return element.data("JOBAD.UI.Folding.enabled")?true:false; + } + }; + + this.Folding = JOBAD.util.bindEverything(this.Folding, this); +});/* end <events/JOBAD.folding.js> */ +/* start <events/JOBAD.toolbar.js> */ +/* + JOBAD 3 Toolbar + JOBAD.toolbar.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + + +JOBAD.events.Toolbar = +{ + 'default': function(JobadInstance, Toolbar){ + return false; + }, + 'Setup': { + 'enable': function(){ + this.modules.iterateAnd(function(module){ + module.Toolbar.enable(); + return true; + }); + }, + 'disable': function(){ + //Remove all toolbars + this.modules.iterateAnd(function(module){ + module.Toolbar.disable(); + return true; + }); + } + }, + 'namespace': { + + 'getResult': function(){ + var me = this; + this.modules.iterateAnd(function(module){ + module.Toolbar.show(); + return true; + }); + }, + 'trigger': function(){ + preEvent(this, "Toolbar", []); + this.Event.Toolbar.getResult(); + postEvent(this, "Toolbar", []); + } + } +}; + +JOBAD.modules.ifaces.push([ + function(properObject, ModuleObject){ + return properObject; + }, function(){ + var me = this; + var id = me.info().identifier; + + var TBElement = undefined; + var JOBADInstance = me.getJOBAD(); + + var enabled = false; + + + this.Toolbar.get = function(){ + //gets the toolbar if available, otherwise undefined + return TBElement; + }; + + this.Toolbar.isEnabled = function(){ + return enabled; + } + + this.Toolbar.enable = function(){ + //enable the toolbar + + if(me.Toolbar.isEnabled()){ + //Remove any old toolbars + me.Toolbar.disable(); + } + + //create a new Toolbar + var TB = JOBAD.UI.Toolbar.add(); + + + //check if we need it + var res = me.Toolbar.call(me, me.getJOBAD(), TB); + + if(res !== true){ + //we do not want it => remove it. + TB.remove(); + JOBAD.UI.Toolbar.update(); + + return false; + } else { + //we need it. + TBElement = TB; + JOBADInstance.Event.trigger("Toolbar.add", id); + + enabled = true; //it is now enabled + + return true; + } + + + } + + this.Toolbar.disable = function(){ + //disable the toolbar + + if(!me.Toolbar.isEnabled()){ + //we are already disabled + return false; + } + + //remove the toolbar element + + TBElement.remove(); + JOBAD.UI.Toolbar.update(); + TBElement = undefined; + + JOBADInstance.Event.trigger("Toolbar.remove", id); + + enabled = false; //it is now disabled + return true; + } + + //Hide / Show the Toolbar + + var visible = JOBADInstance.Config.get("auto_show_toolbar"); //get the default + + this.Toolbar.setVisible = function(){ + visible = true; + me.Toolbar.show(); + } + + this.Toolbar.setHidden = function(){ + visible = false; + me.Toolbar.show(); + } + + this.Toolbar.isVisible = function(){ + return visible; + } + + this.Toolbar.show = function(){ + if(me.Toolbar.isVisible() && me.isActive() && JOBADInstance.Instance.isFocused()){ + me.Toolbar.enable(); + return true; + } else { + me.Toolbar.disable(); + return false; + } + } + + this.Toolbar.moveUp = function(){ + return JOBAD.UI.Toolbar.moveUp(TBElement); + } + + this.Toolbar.moveDown = function(){ + return JOBAD.UI.Toolbar.moveDown(TBElement); + } + + + //Register Event Handlers for activation + focus + + JOBADInstance.Event.on("module.activate", function(m){ + if(m.info().identifier == id){ + me.Toolbar.show(); + } + }); + + JOBADInstance.Event.on("instance.focus", function(m){ + me.Toolbar.show(); + }); + + JOBADInstance.Event.on("instance.unfocus", function(m){ + me.Toolbar.disable(); + }); + }]); /* end <events/JOBAD.toolbar.js> */ +/* start <events/JOBAD.events.js> */ +/* + JOBAD 3 Events + JOBAD.events.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +/* left click */ +JOBAD.events.leftClick = +{ + 'default': function(){ + return false; + }, + 'Setup': { + 'enable': function(root){ + var me = this; + root.delegate("*", 'click.JOBAD.leftClick', function(event){ + var element = JOBAD.refs.$(event.target); //The base element. + switch (event.which) { + case 1: + /* left mouse button => left click */ + preEvent(me, "leftClick", [element]); + me.Event.leftClick.trigger(element); + postEvent(me, "leftClick", [element]); + event.stopPropagation(); //Not for the parent. + break; + default: + /* nothing */ + } + }); + }, + 'disable': function(root){ + root.undelegate("*", 'click.JOBAD.leftClick'); + } + }, + 'namespace': + { + + 'getResult': function(target){ + return this.modules.iterateAnd(function(module){ + module.leftClick.call(module, target, module.getJOBAD()); + return true; + }); + }, + 'trigger': function(target){ + if(JOBAD.util.isHidden(target)){ + return true; + } + var evt = this.Event.leftClick.getResult(target); + return evt; + } + } +}; + +/* keypress */ +JOBAD.events.keyPress = +{ + 'default': function(key, JOBADInstance){ + return false; + }, + 'Setup': { + 'enable': function(root){ + var me = this; + me.Event.keyPress.__handlerName = JOBAD.util.onKey(function(k){ + if(me.Instance.isFocused()){ + preEvent(me, "keyPress", [k]); + var res = me.Event.keyPress.trigger(k); + postEvent(me, "keyPress", [k]); + return res; + } else { + return true; + } + }); + }, + 'disable': function(root){ + JOBAD.refs.$(document).off(this.Event.keyPress.__handlerName); + } + }, + 'namespace': + { + + 'getResult': function(key){ + var res = this.modules.iterateAnd(function(module){ + return !module.keyPress.call(module, key, module.getJOBAD()); + }); + + return res; + }, + 'trigger': function(key){ + var evt = this.Event.keyPress.getResult(key); + return evt; + } + } +}; + +/* double Click */ +JOBAD.events.dblClick = +{ + 'default': function(){ + return false; + }, + 'Setup': { + 'enable': function(root){ + var me = this; + root.delegate("*", 'dblclick.JOBAD.dblClick', function(event){ + var element = JOBAD.refs.$(event.target); //The base element. + preEvent(me, "dblClick", [element]); + var res = me.Event.dblClick.trigger(element); + postEvent(me, "dblClick", [element]); + event.stopPropagation(); //Not for the parent. + }); + }, + 'disable': function(root){ + root.undelegate("*", 'dblclick.JOBAD.dblClick'); + } + }, + 'namespace': + { + + 'getResult': function(target){ + return this.modules.iterateAnd(function(module){ + module.dblClick.call(module, target, module.getJOBAD()); + return true; + }); + }, + 'trigger': function(target){ + if(JOBAD.util.isHidden(target)){ + return true; + } + var evt = this.Event.dblClick.getResult(target); + return evt; + } + } +}; + +/* onEvent */ +JOBAD.events.onEvent = +{ + 'default': function(){}, + 'Setup': { + 'enable': function(root){ + var me = this; + + me.Event.onEvent.id = + me.Event.on("event.handlable", function(event, args){ + me.Event.onEvent.trigger(event, args); + }); + }, + 'disable': function(root){ + var me = this; + me.Event.off(me.Event.onEvent.id); + } + }, + 'namespace': + { + + 'getResult': function(event, element){ + return this.modules.iterateAnd(function(module){ + module.onEvent.call(module, event, element, module.getJOBAD()); + return true; + }); + }, + 'trigger': function(event, element){ + if(JOBAD.util.isHidden(element)){ + return true; + } + return this.Event.onEvent.getResult(event, element); + } + } +}; + +/* context menu entries */ +JOBAD.events.contextMenuEntries = +{ + 'default': function(){ + return []; + }, + 'Setup': { + 'enable': function(root){ + var me = this; + JOBAD.UI.ContextMenu.enable(root, function(target){ + preEvent(me, "contextMenuEntries", [target]); + var res = me.Event.contextMenuEntries.getResult(target); + postEvent(me, "contextMenuEntries", [target]); + return res; + }, { + "type": function(target){ + return me.Config.get("cmenu_type"); + }, + "show": function(){ + me.Event.trigger("contextmenu.open", []); + me.Event.handle("contextMenuOpen"); + }, + "close": function(){ + me.Event.trigger("contextmenu.close", []); + me.Event.handle("contextMenuClose"); + }, + "stopPropagnate": true + }); + }, + 'disable': function(root){ + JOBAD.UI.ContextMenu.disable(root); + } + }, + 'namespace': + { + 'getResult': function(target){ + var res = []; + var mods = this.modules.iterate(function(module){ + var mtarget = target; + var res = []; + while(true){ + if(mtarget.length == 0 + || res.length > 0){ + + return res; + } + res = module.contextMenuEntries.call(module, mtarget, module.getJOBAD()); + res = JOBAD.UI.ContextMenu.generateMenuList(res); + mtarget = mtarget.parent(); + } + }); + for(var i=0;i<mods.length;i++){ + var mod = mods[i]; + for(var j=0;j<mod.length;j++){ + res.push(mod[j]); + } + } + if(res.length == 0){ + return false; + } else { + return res; + } + } + } +} + +/* configUpdate */ +JOBAD.events.configUpdate = +{ + 'default': function(setting, JOBADInstance){}, + 'Setup': { + 'enable': function(root){ + var me = this; + JOBAD.refs.$("body").on('JOBAD.ConfigUpdateEvent', function(jqe, setting, moduleId){ + preEvent(me, "configUpdate", [setting, moduleId]); + me.Event.configUpdate.trigger(setting, moduleId); + postEvent(me, "configUpdate", [setting, moduleId]); + }); + }, + 'disable': function(root){ + JOBAD.refs.$("body").off('JOBAD.ConfigUpdateEvent'); + } + }, + 'namespace': + { + + 'getResult': function(setting, moduleId){ + return this.modules.iterateAnd(function(module){ + if(module.info().identifier == moduleId){ //only call events for own module. + module.configUpdate.call(module, setting, module.getJOBAD()); + } + return true; + }); + }, + 'trigger': function(setting, moduleId){ + return this.Event.configUpdate.getResult(setting, moduleId); + } + } +}; + +/* hover Text */ +JOBAD.events.hoverText = +{ + 'default': function(){ + return false; + }, + 'Setup': { + 'init': function(){ + this.Event.hoverText.activeHoverElement = undefined; //the currently active element. + }, + 'enable': function(root){ + + var me = this; + var trigger = function(event){ + var $element = JOBAD.refs.$(this); + var res = me.Event.hoverText.trigger($element); + if(res){//something happened here: dont trigger on parent + event.stopPropagation(); + } else if(!$element.is(root)){ //I have nothing => trigger the parent + JOBAD.refs.$(this).parent().trigger('mouseenter.JOBAD.hoverText', event); //Trigger parent if i'm not root. + } + root.trigger('JOBAD.Event', ['hoverText', $element]); + return false; + }; + + + var untrigger = function(event){ + return me.Event.hoverText.untrigger(JOBAD.refs.$(this)); + }; + + root + .delegate("*", 'mouseenter.JOBAD.hoverText', trigger) + .delegate("*", 'mouseleave.JOBAD.hoverText', untrigger); + + }, + 'disable': function(root){ + if(typeof this.Event.hoverText.activeHoverElement != 'undefined') + { + me.Event.hoverText.untrigger(); //remove active Hover menu + } + + + root + .undelegate("*", 'mouseenter.JOBAD.hoverText') + .undelegate("*", 'mouseleave.JOBAD.hoverText'); + } + }, + 'namespace': { + 'getResult': function(target){ + if(JOBAD.util.isHidden(target)){ + return true; + } + var res = false; + this.modules.iterate(function(module){ + var hoverText = module.hoverText.call(module, target, module.getJOBAD()); //call apply and stuff here + if(typeof hoverText != 'undefined' && typeof res == "boolean"){//trigger all hover handlers ; display only the first one. + if(typeof hoverText == "string"){ + res = JOBAD.refs.$("<p>").text(hoverText) + } else if(typeof hoverText != "boolean"){ + try{ + res = JOBAD.refs.$(hoverText); + } catch(e){ + JOBAD.error("Module '"+module.info().identifier+"' returned invalid HOVER result. "); + } + } else if(hoverText === true){ + res = true; + } + } + return true; + }); + return res; + }, + 'trigger': function(source){ + if(source.data('JOBAD.hover.Active')){ + return false; + } + + preEvent(this, "hoverText", [source]); + var EventResult = this.Event.hoverText.getResult(source); //try to do the event + + if(typeof EventResult == 'boolean'){ + postEvent(this, "hoverText", [source]); + return EventResult; + } + + if(this.Event.hoverText.activeHoverElement instanceof JOBAD.refs.$)//something already active + { + if(this.Event.hoverText.activeHoverElement.is(source)){ + return true; //done and die + } + this.Event.hoverText.untrigger(this.Event.hoverText.activeHoverElement); + } + + this.Event.hoverText.activeHoverElement = source; + + source.data('JOBAD.hover.Active', true); + var tid = window.setTimeout(function(){ + source.removeData('JOBAD.hover.timerId'); + JOBAD.UI.hover.enable(EventResult.html(), "JOBAD_Hover"); + }, JOBAD.UI.hover.config.hoverDelay); + + source.data('JOBAD.hover.timerId', tid);//save timeout id + return true; + + }, + 'untrigger': function(source){ + if(typeof source == 'undefined'){ + if(this.Event.hoverText.activeHoverElement instanceof JOBAD.refs.$){ + source = this.Event.hoverText.activeHoverElement; + } else { + return false; + } + } + + if(!source.data('JOBAD.hover.Active')){ + return false; + } + + + + if(typeof source.data('JOBAD.hover.timerId') == 'number'){ + window.clearTimeout(source.data('JOBAD.hover.timerId')); + source.removeData('JOBAD.hover.timerId'); + } + + source.removeData('JOBAD.hover.Active'); + + this.Event.hoverText.activeHoverElement = undefined; + + JOBAD.UI.hover.disable(); + + postEvent(this, "hoverText", [source]); + + if(!source.is(this.element)){ + this.Event.hoverText.trigger(source.parent());//we are in the parent now + return false; + } + } + } +}/* end <events/JOBAD.events.js> */ +/* start <JOBAD.config.js> */ +/* + JOBAD Configuration + JOBAD.config.js + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + + +//StorageBackend + +JOBAD.storageBackend = { + "getKey": function(key, def){ + var res = JOBAD.storageBackend.engines[JOBAD.config.storageBackend][0](key); + if(typeof res == "string"){ + return JSON.parse(res); + } else { + return def; + } + }, + "setKey": function(key, value){return JOBAD.storageBackend.engines[JOBAD.config.storageBackend][1](key, JSON.stringify(value));} +} + +JOBAD.storageBackend.engines = { + "none": [function(key){}, function(key, value){}], + "cookie": [function(key){ + var cookies = document.cookie; + + var startIndex = cookies.indexOf(" "+key+"="); + startIndex = (startIndex == -1)?cookies.indexOf(key+"="):startIndex; + + if(startIndex == -1){ + //we can't find it + return false; + } + + //we sart after start Index + startIndex = cookies.indexOf("=", startIndex)+1; + + var endIndex = cookies.indexOf(";", startIndex); + endIndex = (endIndex == -1)?cookies.length:endIndex; //till the end + + return unescape(cookies.substring(startIndex, endIndex)); + }, function(key, value){ + //sets a cookie + var expires=new Date(); + expires.setDate(expires.getDate()+7); //store settings for 7 days + document.cookie = escape(key) + "=" + escape(value) + "; expires="+expires.toUTCString()+""; + }] +}; + +JOBAD.config.storageBackend = "cookie"; + + + +//Config Settings - module based +/* + Validates if specefied object of a configuration object can be set. + @param obj Configuration Object + @param key Key to validate. + @param val Value to validate. + @returns boolean +*/ +JOBAD.modules.validateConfigSetting = function(obj, key, val){ + if(!obj.hasOwnProperty(key)){ + JOBAD.console.warn("Undefined user setting: "+key); + return false; + } + var type = obj[key][0]; + var validator = obj[key][1]; + switch(type){ + case "string": + return (validator(val) && typeof val == "string"); + break; + case "bool": + return (typeof val == "boolean"); + break; + case "integer": + return (typeof val == "number" && val % 1 == 0 && validator(val)); + break; + case "number": + return (typeof val == "number" && validator(val)); + break; + case "list": + return validator(val); + break; + case "none": + return true; + break; + } +}; + +/* + Creates a proper User Settings Object + @param obj Configuration Object + @param modName Name of the module + @returns object +*/ +JOBAD.modules.createProperUserSettingsObject = function(obj, modName){ + + var newObj = {}; + for(var key in obj){ + + var WRONG_FORMAT_MSG = "Ignoring UserConfig '"+key+"' in module '"+modName+"': Wrong description format"; + + if(obj.hasOwnProperty(key)){ + (function(){ + var spec = obj[key]; + var newSpec = []; + + if(!JOBAD.util.isArray(spec)){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Array required). "); + return; + } + + if(spec.length == 0){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Array may not have length zero). "); + return; + } + + if(typeof spec[0] == 'string'){ + var type = spec[0]; + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (type must be a string). "); + return; + } + if(type == "none"){ + if(spec.length == 2){ + var def = spec[1]; + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Array length 2 required for 'none'. "); + return; + } + } else if(spec.length == 4){ + var validator = spec[1]; + var def = spec[2]; + var meta = spec[3]; + } else if(spec.length == 3) { + var validator = function(){return true;}; + var def = spec[1]; + var meta = spec[2]; + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Array length 3 or 4 required). "); + return; + } + + switch(type){ + case "string": + newSpec.push("string"); + + //validator + if(JOBAD.util.isRegExp(validator)){ + newSpec.push(function(val){return validator.test(val)}); + } else if(typeof validator == 'function') { + newSpec.push(validator); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Unknown restriction type for 'string'. ). "); + return; + } + + //default + try{ + if(newSpec[newSpec.length-1](def) && typeof def == 'string'){ + newSpec.push(def); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function failed for default value. ). "); + return; + } + } catch(e){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function caused exception for default value. ). "); + return; + } + + //meta + if(typeof meta == 'string'){ + newSpec.push([meta, ""]); + } else if(JOBAD.util.isArray(meta)) { + if(meta.length == 1){ + meta.push(""); + } + if(meta.length == 2){ + newSpec.push(meta); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data not allowed for length > 2). "); + return; + } + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data needs to be a string or an array). "); + return; + } + + break; + case "bool": + newSpec.push("bool"); + + //Validator + if(spec.length == 4){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Type 'boolean' may not have restrictions. )"); + return; + } + newSpec.push(validator); + + //default + try{ + if(newSpec[newSpec.length-1](def) && typeof def == 'boolean'){ + newSpec.push(def); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function failed for default value. ). "); + return; + } + } catch(e){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function caused exception for default value. ). "); + return; + } + + //meta + if(typeof meta == 'string'){ + newSpec.push([meta, ""]); + } else if(JOBAD.util.isArray(meta)) { + if(meta.length == 1){ + meta.push(""); + } + if(meta.length == 2){ + newSpec.push(meta); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data not allowed for length > 2). "); + return; + } + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data needs to be a string or an array). "); + return; + } + + break; + case "integer": + newSpec.push("integer"); + + //validator + if(JOBAD.util.isArray(validator)){ + if(validator.length == 2){ + newSpec.push(function(val){return (val >= validator[0])&&(val <= validator[1]);}); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Restriction Array must be of length 2). "); + } + } else if(typeof validator == 'function') { + newSpec.push(validator); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Unknown restriction type for 'integer'. ). "); + return; + } + + //default + try{ + if(newSpec[newSpec.length-1](def) && (def % 1 == 0)){ + newSpec.push(def); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function failed for default value. ). "); + return; + } + } catch(e){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function caused exception for default value. ). "); + return; + } + + //meta + if(typeof meta == 'string'){ + newSpec.push([meta, ""]); + } else if(JOBAD.util.isArray(meta)) { + if(meta.length == 1){ + meta.push(""); + } + if(meta.length == 2){ + newSpec.push(meta); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data not allowed for length > 2). "); + return; + } + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data needs to be a string or an array). "); + return; + } + + break; + case "number": + newSpec.push("number"); + + //validator + if(JOBAD.util.isArray(validator)){ + if(validator.length == 2){ + newSpec.push(function(val){return (val >= validator[0])&&(val <= validator[1]);}); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Restriction Array must be of length 2). "); + } + } else if(typeof validator == 'function') { + newSpec.push(validator); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Unknown restriction type for 'number'. ). "); + return; + } + + //default + try{ + if(newSpec[newSpec.length-1](def) && typeof def == 'number'){ + newSpec.push(def); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function failed for default value. ). "); + return; + } + } catch(e){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function caused exception for default value. ). "); + return; + } + + //meta + if(typeof meta == 'string'){ + newSpec.push([meta, ""]); + } else if(JOBAD.util.isArray(meta)) { + if(meta.length == 1){ + meta.push(""); + } + if(meta.length == 2){ + newSpec.push(meta); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data not allowed for length > 2). "); + return; + } + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data needs to be a string or an array). "); + return; + } + + break; + case "list": + newSpec.push("list"); + + + //validator + if(JOBAD.util.isArray(validator) && spec.length == 4){ + if(validator.length == 0){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Array restriction must be non-empty). "); + return; + } + newSpec.push(function(val){return (JOBAD.util.indexOf(validator, val) != -1);}); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Type 'list' needs array restriction. ). "); + return; + } + + //default + try{ + if(newSpec[newSpec.length-1](def)){ + newSpec.push(def); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function failed for default value. ). "); + return; + } + } catch(e){ + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Validation function caused exception for default value. ). "); + return; + } + + //meta + if(JOBAD.util.isArray(meta)) { + if(meta.length == validator.length+1){ + newSpec.push(meta); + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data has wrong length). "); + return; + } + } else { + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Meta data for type 'list' an array). "); + return; + } + + //construction-data + newSpec.push(validator); + + break; + case "none": + newSpec.push("none"); + newSpec.push(def); + break; + default: + JOBAD.console.warn(WRONG_FORMAT_MSG+" (Unknown type '"+type+"'. ). "); + return; + break; + } + newObj[key] = newSpec; + })(); + } + } + return newObj; +}; + +/* + Gets the default of a configuration object + @param obj Configuration Object + @param key Key to get. + @returns object +*/ +JOBAD.modules.getDefaultConfigSetting = function(obj, key){ + if(!obj.hasOwnProperty(key)){ + JOBAD.console.warn("Undefined user setting: "+key); + return; + } + return obj[key][2]; +}; + +//Config Settings - module +var configCache = {}; //cache of set values +var configSpec = {}; + +var userConfigMessages = {}; //messages for userconfig + + +JOBAD.UserConfig = {}; + +/* + Sets a user configuration. + @param id Id of module to use UserConfig from. + @param prop Property to set + @param val Value to set. +*/ +JOBAD.UserConfig.set = function(id, prop, val){ + var value = JOBAD.UserConfig.getTypes(id); + + if(JOBAD.util.isObject(prop)){ + var keys = JOBAD.util.keys(prop); + return JOBAD.util.map(keys, function(key){ + return JOBAD.UserConfig.set(id, key, prop[key]); + }); + } + + if(JOBAD.UserConfig.canSet(id, prop, val)){ + if(JOBAD.util.objectEquals(val, JOBAD.UserConfig.get(id, prop))){ + return; //we have it already; no change neccessary. + } + configCache[id][prop] = val; + + } else { + JOBAD.console.warn("Can not set user config '"+prop+"' of module '"+id+"': Validation failure. "); + return; + } + JOBAD.storageBackend.setKey(id, configCache[id]); + JOBAD.refs.$("body").trigger("JOBAD.ConfigUpdateEvent", [prop, id]); + + return prop; +}; + +/* + Checks if a user configuration can be set. + @param id Id of module to use UserConfig from. + @param prop Property to set + @param val Value to set. +*/ +JOBAD.UserConfig.canSet = function(id, prop, val){ + var value = JOBAD.UserConfig.getTypes(id); + if(JOBAD.util.isObject(prop)){ + var keys = JOBAD.util.keys(prop); + return JOBAD.util.lAnd(JOBAD.util.map(keys, function(key){ + return JOBAD.modules.validateConfigSetting(value, key, prop[key]); + })); + } else { + return JOBAD.modules.validateConfigSetting(value, prop, val); + } +}; + +/* + Retrieves a user configuration setting. + @param id Id of module to use UserConfig from. + @param prop Property to get + @param val Value to get. +*/ +JOBAD.UserConfig.get = function(id, prop){ + var value = JOBAD.UserConfig.getTypes(id); + + if(JOBAD.util.isObject(prop) && !JOBAD.util.isArray(prop)){ + var prop = JOBAD.util.keys(prop); + } + if(JOBAD.util.isArray(prop)){ + var res = {}; + + JOBAD.util.map(prop, function(key){ + res[key] = JOBAD.UserConfig.get(id, key); + }); + + return res; + } + + var res = configCache[id][prop]; + if(JOBAD.modules.validateConfigSetting(value, prop, res)){ + return res; + } else { + JOBAD.console.log("Failed to access user setting '"+prop+"'"); + return; + } +}; + +/* + Gets the user configuration types. + @param id Id of module to use UserConfig from. +*/ +JOBAD.UserConfig.getTypes = function(id){ + if(!configSpec.hasOwnProperty(id)){ + JOBAD.error("Can't access UserConfig for module '"+id+"': Module not found (is it registered yet? )"); + return; + } + return configSpec[id]; +} + +/* + Resets the user configuration. + @param id Id of module to use UserConfig from. + @param prop Optional. Property to reset. +*/ +JOBAD.UserConfig.reset = function(id, prop){ + var value = JOBAD.UserConfig.getTypes(id); + configCache[id] = JOBAD.storageBackend.getKey(id); + if(typeof configCache[id] == "undefined"){ + configCache[id] = {}; + for(var key in value){ + configCache[id][key] = JOBAD.modules.getDefaultConfigSetting(value, key); + JOBAD.refs.$("body").trigger("JOBAD.ConfigUpdateEvent", [key, id]); + } + } +}; + + +/* + Gets the current message set by the module. + @param id Id of module to use. +*/ +JOBAD.UserConfig.getMessage = function(id){ + if(!configSpec.hasOwnProperty(id)){ + JOBAD.error("Can't access UserConfig for module '"+id+"': Module not found (is it registered yet? )"); + return; + } + + var msg = userConfigMessages[id]; + + return (typeof msg == "undefined"?"":msg); +} + +/* + Sets the current message set by the module. + @param id Id of module to use. + @param msg New message +*/ +JOBAD.UserConfig.setMessage = function(id, msg){ + if(!configSpec.hasOwnProperty(id)){ + JOBAD.error("Can't access UserConfig for module '"+id+"': Module not found (is it registered yet? )"); + return; + } + userConfigMessages[id] = msg; + return msg; +} + +/* + Gets a UserConfig Object for the sepecefied module id. + @param id Identifier of module to get UserConfig for. +*/ +JOBAD.UserConfig.getFor = function(id){ + if(!configSpec.hasOwnProperty(id)){ + JOBAD.error("Can't access UserConfig for module '"+id+"': Module not found (is it registered yet? )"); + return; + } + + return { + "set": function(prop, val){ + return JOBAD.UserConfig.set(id, prop, val); + }, + "setMessage": function(msg){ + return JOBAD.UserConfig.setMessage(id, msg); + }, + "get": function(prop){ + return JOBAD.UserConfig.get(id, prop); + }, + "getMessage": function(){ + return JOBAD.UserConfig.getMessage(id); + }, + "canSet": function(prop, val){ + return JOBAD.UserConfig.canSet(id, prop, val); + }, + "getTypes": function(){ + return JOBAD.UserConfig.getTypes(id); + }, + "reset": function(prop){ + return JOBAD.UserConfig.reset(id, prop); + } + }; +}; + + + +JOBAD.modules.extensions.config = { + "required": false, //not required + + "validate": function(prop){return true; }, + + "init": function(available, value, originalObject, properObject){ + return JOBAD.modules.createProperUserSettingsObject(available ? value : {}, properObject.info.identifier); + }, + "globalProperties": ["UserConfig", "Config"], + "onRegister": function(value, properObject, moduleObject){ + var id = properObject.info.identifier; + + configSpec[id] = value; //store the specification in the cache; it is now open. + + if(!configCache.hasOwnProperty()){ + JOBAD.UserConfig.reset(properObject.info.identifier); + } + }, + "onLoad": function(value, properObject, loadedModule){ + this.UserConfig = JOBAD.UserConfig.getFor(properObject.info.identifier); + } +} + +/* + Instance Based Configuration +*/ + +JOBAD.ifaces.push(function(JOBADRootElement, params){ + + var config = params[1]; + + var spec = JOBAD.modules.createProperUserSettingsObject({ + "cmenu_type": ["list", ['standard', 'radial'], 'standard', ["Context Menu Type", "Standard", "Radial"]], + "sidebar_type": ["list", JOBAD.Sidebar.types, JOBAD.Sidebar.types[0], JOBAD.Sidebar.desc], + "restricted_user_config": ["none", []], + "auto_show_toolbar": ["bool", false, "Auto show all toolbars"] + }, ""); + var cache = JOBAD.util.extend({}, (typeof config == 'undefined')?{}:config); + + this.Config = {}; + + this.Config.get = function(key){ + if(!spec.hasOwnProperty(key)){ + JOBAD.console.log("Can't find '"+key+"' in Instance Config. "); + return undefined; + } + if(cache.hasOwnProperty(key)){ + return cache[key]; + } else { + return spec[key][2]; + } + + }; + + this.Config.set = function(key, val){ + cache[key] = val; + }; + + this.Config.getTypes = function(){ + return spec; + }; + + this.Config.reset = function(){ + cache = {}; + }; + + this.Config = JOBAD.util.bindEverything(this.Config, this); +});/* end <JOBAD.config.js> */ +/* start <core/JOBAD.core.instances.js> */ +/* + JOBAD 3 Core Instances + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ + +JOBAD.Instances = {}; + +JOBAD.Instances.all = {}; + +var focused = undefined; +var waiting = undefined; + +JOBAD.ifaces.push(function(me){ + //store a reference so it is kept + + JOBAD.Instances.all[me.ID] = this; + + var i_am_focused = false; + var i_am_waiting = false; + + var prev_focus = undefined; //previous focus + + //Instance Namespace + me.Instance = {}; + + /* + Focuses this JOBADInstance + @returns false if the Instance can not be focused for some reason, true otherwise. + */ + me.Instance.focus = function(){ + if(i_am_focused){ + return false; + } + + if(i_am_waiting){ + return false; + } + + if(typeof focused != "undefined"){ + //someone else is focused => throw him out. + prev_focus = focused; + focused.Instance.unfocus(); + + } + + if(typeof waiting != "undefined"){ + //someone else is waiting => throw him out. + waiting.Instance.unfocus(); + } + + i_am_waiting = true; + waiting = me; + + me.Event.trigger("instance.focus_query"); + + me.Setup.enabled(function(){ //(IF ENABLED) + if(i_am_waiting){ + i_am_waiting = false; + waiting = undefined; + i_am_focused = true; + focused = me; + + me.Event.trigger("instance.focus", [prev_focus]); + + me.Event.focus.trigger(prev_focus); + + prev_focus = undefined; + } + }); + + return true; + }; + + /* + Unfocuses this JOBADInstance + @returns false if the Instance can not be unfocused for some reason, true otherwise. + */ + me.Instance.unfocus = function(){ + if(i_am_focused){ + //we are fully focused, we can just unfocus + + focused = undefined; + i_am_focused = false; + + me.Event.trigger("instance.unfocus"); + + me.Event.unfocus.trigger(); + + return true; + } else { + if(i_am_waiting){ + i_am_waiting = false; //I am no longer waiting + waiting = undefined; + + me.Event.trigger("instance.focus_query_lost"); + + return true; + } else { + JOBAD.console.warn("Can't unfocus JOBADInstance: Instance neither focused nor queried. "); + return false; + } + } + }; + + /* + Checks if this JOBADInstance is focused. + */ + me.Instance.isFocused = function(){ + return i_am_focused; + }; + + /* + Call a function if this JOBADInstance is focused, otherwise call it + once that is true. + */ + me.Instance.focused = function(cb){ + if(me.Instance.isFocused()){ + cb.call(me); + } else { + me.Event.once("instance.focus", function(){ + cb.call(me); + }) + } + }; + + var isAutoFocusEnabled = false; + var autoFocusHandlers = []; + var handlerNames = ["contextmenu.open", "contextMenuEntries", "dblClick", "leftClick", "hoverText"]; + + me.Instance.enableAutoFocus = function(){ + if(isAutoFocusEnabled){ + return false; + } + + me.Event.trigger("instance.autofocus.enable"); + + for(var i=0;i<handlerNames.length;i++){ + (function(){ + var handlerName = handlerNames[i]; + autoFocusHandlers.push( + me.Event.on(handlerName, function(){ + me.Event.trigger("instance.autofocus.trigger", [handlerName]); + me.Instance.focus(); + }) + ); + })(); + + } + + isAutoFocusEnabled = true; + return true; + }; + + me.Instance.disableAutoFocus = function(){ + if(!isAutoFocusEnabled){ + return false; + } + + me.Event.trigger("instance.autofocus.disable"); + + while(autoFocusHandlers.length > 0){ + var handler = autoFocusHandlers.pop(); + me.Event.off(handler); + } + + isAutoFocusEnabled = false; + return true; + }; + + me.Instance.isAutoFocusEnabled = function(){ + return isAutoFocusEnabled; + } + + me.Event.on("instance.beforeDisable", function(){ + if(i_am_focused){ //we are focused and are not waiting + me.Instance.unfocus(); //unfocus me + + me.Event.once("instance.disable", function(){ + prev_focus = me; //I was the last one as well + me.Instance.focus(); //requery me for enabling once I am disabled + }) + } + }) +}); + +/* + Gets the currently focused JOBADInstance. +*/ +JOBAD.Instances.focused = function(){ + return focused; +} + +/* focus Event */ +JOBAD.events.focus = +{ + 'default': function(JOBADInstance, prevFocus){}, + 'Setup': { + 'enable': function(root){ + return; //nothing to do + }, + 'disable': function(root){ + return; //nothing to do + } + }, + 'namespace': + { + + 'getResult': function(prevFocus){ + return this.modules.iterateAnd(function(module){ + module.focus.call(module, module.getJOBAD(), prevFocus); + return true; + }); + }, + 'trigger': function(prevFocus){ + return this.Event.focus.getResult(prevFocus); + } + } +}; + +/* focus Event */ +JOBAD.events.unfocus = +{ + 'default': function(JOBADInstance){}, + 'Setup': { + 'enable': function(root){ + return; //nothing to do + }, + 'disable': function(root){ + return; //nothing to do + } + }, + 'namespace': + { + + 'getResult': function(){ + return this.modules.iterateAnd(function(module){ + module.unfocus.call(module, module.getJOBAD()); + return true; + }); + }, + 'trigger': function(){ + return this.Event.unfocus.getResult(); + } + } +};/* end <core/JOBAD.core.instances.js> */ +/* start <JOBAD.wrap.js> */ +/* + JOBAD.wrap.js + + Included at the end of the build to register all ifaces. + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. +*/ +for(var key in JOBAD.modules.extensions){ + JOBAD.modules.cleanProperties.push(key); +} + +for(var key in JOBAD.events){ + if(!JOBAD.util.contains(SpecialEvents, key)){ + JOBAD.modules.cleanProperties.push(key); + } +}/* end <JOBAD.wrap.js> */ +return JOBAD; +})(); diff --git a/servlet/src/main/resources/app/jobad/JOBAD.min.css b/servlet/src/main/resources/app/jobad/JOBAD.min.css new file mode 100644 index 0000000000000000000000000000000000000000..fb31aca7a4d7973cf391e22c6a578435a9cfd930 --- /dev/null +++ b/servlet/src/main/resources/app/jobad/JOBAD.min.css @@ -0,0 +1,92 @@ +/* + JOBAD CSS File (Minified Version) + built: Fri, 22 Nov 2013 11:51:44 +0100 + + Contains all JOBAD related CSS data + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. + +*/ +.JOBAD.JOBAD_Hover{position:fixed;z-index:101;} +.JOBAD.JOBAD_Contextmenu{} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem{position:fixed;overflow:hidden;} +.JOBAD.JOBAD_InlineIcon{position:static;float:left;} +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Group,.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Single{position:absolute;right:0px;} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Group,.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Single{position:absolute;left:0px;} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_group_element,.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_group_element{position:relative;} +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Wrapper{width:100%;float:left;} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Wrapper{width:100%;float:right;} +.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Container{height:1px;position:relative;float:right;} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Container{height:1px;position:relative;float:left;} +.JOBAD.JOBAD_Sidebar_left.JOBAD_Sidebar_Notification,.JOBAD.JOBAD_Sidebar_right.JOBAD_Sidebar_Notification{-webkit-border-radius:5;-moz-border-radius:5;border-radius:5;} +.JOBAD.JOBAD_Sidebar.JOBAD_Sidebar_Hover{position:fixed;-webkit-border-radius:5;-moz-border-radius:5;border-radius:5;} +.JOBAD.JOBAD_Folding_left,.JOBAD.JOBAD_Folding_right{} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Wrapper{width:100%;float:left;margin-top:2px;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Wrapper{width:100%;float:right;margin-bottom:2px;display:inline;} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container{position:relative;float:right;margin-left:5px;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container{position:relative;float:left;margin-right:5px;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Spacing,.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Spacing{width:1px;height:1px;overflow:hidden;display:block;} +.modal.large{width:80%;margin-left:-40%;} +.wide{width:150px !important;} +.JOBAD{} +.JOBAD.JOBAD_InlineIcon{background-size:18px 18px;width:18px;height:18px;} +.JOBAD.JOBAD_Hover{background-color:#ffffca;-webkit-border-radius:5;-moz-border-radius:5;border-radius:5;border:1px solid #000023;} +.JOBAD.JOBAD_Contextmenu{} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem{} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem:hover{-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;border:1px solid black;} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem.JOBAD_ContextMenu_Radial_Disabled{-webkit-filter:grayscale(100%);} +.JOBAD.JOBAD_Contextmenu.JOBAD_ContextMenu_Radial.JOBAD_ContextMenu_RadialItem.JOBAD_ContextMenu_Radial_Disabled:hover{border:0px;} +.JOBAD.JOBAD_Sidebar_left,.JOBAD.JOBAD_Sidebar_right{} +.JOBAD.JOBAD_Sidebar.JOBAD_Sidebar_Hover{} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_info{background-color:#0033FF;border:1px solid #0000FF;} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_warning{background-color:#FFFF00;border:1px solid #FFAA00;} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_error{background-color:red;border:1px solid red;} +.JOBAD.JOBAD_Sidebar.JOBAD_Notification_none{background-color:#696969;border:1px solid #000000;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_folded,.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_unfolded,.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_folded,.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_unfolded{width:3px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-top:1px solid black;border-bottom:1px solid black;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_folded:hover,.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_unfolded:hover,.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_folded:hover,.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_unfolded:hover{background-color:#C0C0C0;} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_folded{border-right:1px solid black;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_folded{border-left:1px solid black;} +.JOBAD.JOBAD_Folding_right.JOBAD_Folding_Container.JOBAD_Folding_unfolded{border-right:1px solid gray;border-top:1px solid gray;border-bottom:1px solid gray;} +.JOBAD.JOBAD_Folding_left.JOBAD_Folding_Container.JOBAD_Folding_unfolded{border-left:1px solid gray;border-top:1px solid gray;border-bottom:1px solid gray;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_tablemain{font-size:150%;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_infobox{vertical-align:top;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_subtabs{font-size:70%;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_ModEntry{vertical-align:top;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_ModEntry td{border-top:1px solid black;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_MetaConfigTitle{font-weight:bold;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_MetaConfigDesc{font-style:italic;margin-left:20px;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_validateFail{background-color:red;} +.JOBAD.JOBAD_ConfigUI.JOBAD_ConfigUI_validateOK{background-color:#FFFFD0;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Body{margin:auto;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_MsgBox{position:fixed;top:20px;left:50%;margin-left:-200px;width:400px;height:20px;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Title{text-align:center;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Desc{text-align:center;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table{border-collapse:collapse;width:100%;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table th,.JOBAD.JOBAD_Repo.JOBAD_Repo_Table td{border:1px solid gray;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Table th{font-weight:bold;border-bottom:3px solid black;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_NA:before{content:"n/a";} +.JOBAD.JOBAD_Repo.JOBAD_Repo_NA{color:gray;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Dependency{color:black;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Dependency.JOBAD_Repo_Dependency_Found:hover{color:green;} +.JOBAD.JOBAD_Repo.JOBAD_Repo_Dependency.JOBAD_Repo_Dependency_NotFound:hover{color:red;} +.JOBAD.JOBAD_Repo.JOBAD_Sort_Ascend:before{content:"+";} +.JOBAD.JOBAD_Repo.JOBAD_Sort_Descend:before{content:"-";} +.JOBAD.JOBAD_Repo.JOBAD_Sort_Ascend,.JOBAD.JOBAD_Repo.JOBAD_Sort_Descend{color:gray;} +.ui-progressbar{position:relative;} +.progress-label{position:absolute;width:400px;text-align:center;top:4px;font-weight:bold;text-shadow:1px 1px 0 #fff;} +.ui-widget{font-size:70%;} diff --git a/servlet/src/main/resources/app/jobad/JOBAD.min.js b/servlet/src/main/resources/app/jobad/JOBAD.min.js new file mode 100644 index 0000000000000000000000000000000000000000..9a9ca1511c2c12a9109777877f00b62d63fe89f1 --- /dev/null +++ b/servlet/src/main/resources/app/jobad/JOBAD.min.js @@ -0,0 +1,52 @@ +/* + JOBAD v3 + Minimized version + built: Fri, 22 Nov 2013 11:51:43 +0100 + + Copyright (C) 2013 KWARC Group <kwarc.info> + + This file is part of JOBAD. + + JOBAD is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + JOBAD is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with JOBAD. If not, see <http://www.gnu.org/licenses/>. + + + JOBAD includes Underscore 1.4.4, Copyright (c) 2009-2013 Jeremy Ashkenas, DocumentCloud. +*/ +var JOBAD=function(){var e=function(t){if(!(this instanceof e)){return new e(t)}var n=this;this.ID=e.util.UID();this.args=[];for(var r=0;r<arguments.length;r++){this.args.push(arguments[r])}this.element=e.refs.$(t);if(this.element.length==0){e.error("Can't create JOBADInstance: Element Collection seems to be empty. ");return}if(this.element.length>1){e.console.warn("Warning: More than one element specefied for JOBADInstance. This may cause problems with some modules. ")}if(e.util.isMarkedHidden(t)){e.error("Can't create JOBADInstance: Element marked as hidden. ");return}this.contains=function(t){return e.util.containsAll(n.element,t,true)};for(var r=0;r<e.ifaces.length;r++){var i=e.ifaces[r];if(typeof i=="function"){i.call(this,this,this.args)}}};e.ifaces=[];e.version="3.2.1";e.toString=function(){return"function(/* JOBAD "+e.version+" */){ [non-native non-trivial code] }"};e.toString.toString=e.toString;e.config={debug:true,BootstrapScope:undefined};if(typeof console!="undefined"){e.console={log:function(t){if(e.config.debug){console.log(t)}},warn:function(t){if(e.config.debug){console.warn(t)}},error:function(t){if(e.config.debug){console.error(t)}}}}else{e.console={log:function(){},warn:function(){},error:function(){}}}e.error=function(t){e.console.error(t);throw new Error(t)};e.refs={};e.refs.$=jQuery;e.noConflict=function(){e.refs.$=e.refs.$.noConflict();return e.refs.$}; +/*! + * jQuery Color Animations v2.1.2 + * https://github.com/jquery/jquery-color + * + * Copyright 2013 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * Date: Wed Jan 16 08:47:09 2013 -0600 + */ +;(function(e,t){function h(e,t,n){var r=u[t.type]||{};if(e==null){return n||!t.def?null:t.def}e=r.floor?~~e:parseFloat(e);if(isNaN(e)){return t.def}if(r.mod){return(e+r.mod)%r.mod}return 0>e?0:r.max<e?r.max:e}function p(t){var n=s(),r=n._rgba=[];t=t.toLowerCase();c(i,function(e,i){var s,u=i.re.exec(t),a=u&&i.parse(u),f=i.space||"rgba";if(a){s=n[f](a);n[o[f].cache]=s[o[f].cache];r=n._rgba=s._rgba;return false}});if(r.length){if(r.join()==="0,0,0,0"){e.extend(r,l.transparent)}return n}return l[t]}function d(e,t,n){n=(n+1)%1;if(n*6<1){return e+(t-e)*n*6}if(n*2<1){return t}if(n*3<2){return e+(t-e)*(2/3-n)*6}return e}var n="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],s=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},o={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},a=s.support={},f=e("<p>")[0],l,c=e.each;f.style.cssText="background-color:rgba(1,1,1,.5)";a.rgba=f.style.backgroundColor.indexOf("rgba")>-1;c(o,function(e,t){t.cache="_"+e;t.props.alpha={idx:3,type:"percent",def:1}});s.fn=e.extend(s.prototype,{parse:function(n,r,i,u){if(n===t){this._rgba=[null,null,null,null];return this}if(n.jquery||n.nodeType){n=e(n).css(r);r=t}var a=this,f=e.type(n),d=this._rgba=[];if(r!==t){n=[n,r,i,u];f="array"}if(f==="string"){return this.parse(p(n)||l._default)}if(f==="array"){c(o.rgba.props,function(e,t){d[t.idx]=h(n[t.idx],t)});return this}if(f==="object"){if(n instanceof s){c(o,function(e,t){if(n[t.cache]){a[t.cache]=n[t.cache].slice()}})}else{c(o,function(t,r){var i=r.cache;c(r.props,function(e,t){if(!a[i]&&r.to){if(e==="alpha"||n[e]==null){return}a[i]=r.to(a._rgba)}a[i][t.idx]=h(n[e],t,true)});if(a[i]&&e.inArray(null,a[i].slice(0,3))<0){a[i][3]=1;if(r.from){a._rgba=r.from(a[i])}}})}return this}},is:function(e){var t=s(e),n=true,r=this;c(o,function(e,i){var s,o=t[i.cache];if(o){s=r[i.cache]||i.to&&i.to(r._rgba)||[];c(i.props,function(e,t){if(o[t.idx]!=null){n=o[t.idx]===s[t.idx];return n}})}return n});return n},_space:function(){var e=[],t=this;c(o,function(n,r){if(t[r.cache]){e.push(n)}});return e.pop()},transition:function(e,t){var n=s(e),r=n._space(),i=o[r],a=this.alpha()===0?s("transparent"):this,f=a[i.cache]||i.to(a._rgba),l=f.slice();n=n[i.cache];c(i.props,function(e,r){var i=r.idx,s=f[i],o=n[i],a=u[r.type]||{};if(o===null){return}if(s===null){l[i]=o}else{if(a.mod){if(o-s>a.mod/2){s+=a.mod}else if(s-o>a.mod/2){s-=a.mod}}l[i]=h((o-s)*t+s,r)}});return this[r](l)},blend:function(t){if(this._rgba[3]===1){return this}var n=this._rgba.slice(),r=n.pop(),i=s(t)._rgba;return s(e.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});if(n[3]===1){n.pop();t="rgb("}return t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){if(e==null){e=t>2?1:0}if(t&&t<3){e=Math.round(e*100)+"%"}return e});if(n[3]===1){n.pop();t="hsl("}return t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();if(t){n.push(~~(r*255))}return"#"+e.map(n,function(e){e=(e||0).toString(16);return e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});s.fn.parse.prototype=s.fn;o.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]]}var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=e[3],s=Math.max(t,n,r),o=Math.min(t,n,r),u=s-o,a=s+o,f=a*.5,l,c;if(o===s){l=0}else if(t===s){l=60*(n-r)/u+360}else if(n===s){l=60*(r-t)/u+120}else{l=60*(t-n)/u+240}if(u===0){c=0}else if(f<=.5){c=u/a}else{c=u/(2-a)}return[Math.round(l)%360,c,f,i==null?1:i]};o.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]]}var t=e[0]/360,n=e[1],r=e[2],i=e[3],s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;return[Math.round(d(o,s,t+1/3)*255),Math.round(d(o,s,t)*255),Math.round(d(o,s,t-1/3)*255),i]};c(o,function(n,i){var o=i.props,u=i.cache,a=i.to,f=i.from;s.fn[n]=function(n){if(a&&!this[u]){this[u]=a(this._rgba)}if(n===t){return this[u].slice()}var r,i=e.type(n),l=i==="array"||i==="object"?n:arguments,p=this[u].slice();c(o,function(e,t){var n=l[i==="object"?e:t.idx];if(n==null){n=p[t.idx]}p[t.idx]=h(n,t)});if(f){r=s(f(p));r[u]=p;return r}else{return s(p)}};c(o,function(t,i){if(s.fn[t]){return}s.fn[t]=function(s){var o=e.type(s),u=t==="alpha"?this._hsla?"hsla":"rgba":n,a=this[u](),f=a[i.idx],l;if(o==="undefined"){return f}if(o==="function"){s=s.call(this,f);o=e.type(s)}if(s==null&&i.empty){return this}if(o==="string"){l=r.exec(s);if(l){s=f+parseFloat(l[2])*(l[1]==="+"?1:-1)}}a[i.idx]=s;return this[u](a)}})});s.hook=function(t){var n=t.split(" ");c(n,function(t,n){e.cssHooks[n]={set:function(t,r){var i,o,u="";if(r!=="transparent"&&(e.type(r)!=="string"||(i=p(r)))){r=s(i||r);if(!a.rgba&&r._rgba[3]!==1){o=n==="backgroundColor"?t.parentNode:t;while((u===""||u==="transparent")&&o&&o.style){try{u=e.css(o,"backgroundColor");o=o.parentNode}catch(f){}}r=r.blend(u&&u!=="transparent"?u:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(f){}}};e.fx.step[n]=function(t){if(!t.colorInit){t.start=s(t.elem,n);t.end=s(t.end);t.colorInit=true}e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})};s.hook(n);e.cssHooks.borderColor={expand:function(e){var t={};c(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e});return t}};l=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery); +/*! + * jQuery Color Animations v2.1.2 - SVG Color Names + * https://github.com/jquery/jquery-color + * + * Remaining HTML/CSS color names per W3C's CSS Color Module Level 3. + * http://www.w3.org/TR/css3-color/#svg-color + * + * Copyright 2013 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * Date: Wed Jan 16 08:47:09 2013 -0600 + */ +;jQuery.extend(jQuery.Color.names,{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32"});(function(){var e=this;var t=e._;var n={};var r=Array.prototype,i=Object.prototype,s=Function.prototype;var o=r.push,u=r.slice,a=r.concat,f=i.toString,l=i.hasOwnProperty;var c=r.forEach,h=r.map,p=r.reduce,d=r.reduceRight,v=r.filter,m=r.every,g=r.some,y=r.indexOf,b=r.lastIndexOf,w=Array.isArray,E=Object.keys,S=s.bind;var x=function(e){if(e instanceof x)return e;if(!(this instanceof x))return new x(e);this._wrapped=e};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=x}exports._=x}else{e._=x}x.VERSION="1.5.1";var T=x.each=x.forEach=function(e,t,r){if(e==null)return;if(c&&e.forEach===c){e.forEach(t,r)}else if(e.length===+e.length){for(var i=0,s=e.length;i<s;i++){if(t.call(r,e[i],i,e)===n)return}}else{for(var o in e){if(x.has(e,o)){if(t.call(r,e[o],o,e)===n)return}}}};x.map=x.collect=function(e,t,n){var r=[];if(e==null)return r;if(h&&e.map===h)return e.map(t,n);T(e,function(e,i,s){r.push(t.call(n,e,i,s))});return r};var N="Reduce of empty array with no initial value";x.reduce=x.foldl=x.inject=function(e,t,n,r){var i=arguments.length>2;if(e==null)e=[];if(p&&e.reduce===p){if(r)t=x.bind(t,r);return i?e.reduce(t,n):e.reduce(t)}T(e,function(e,s,o){if(!i){n=e;i=true}else{n=t.call(r,n,e,s,o)}});if(!i)throw new TypeError(N);return n};x.reduceRight=x.foldr=function(e,t,n,r){var i=arguments.length>2;if(e==null)e=[];if(d&&e.reduceRight===d){if(r)t=x.bind(t,r);return i?e.reduceRight(t,n):e.reduceRight(t)}var s=e.length;if(s!==+s){var o=x.keys(e);s=o.length}T(e,function(u,a,f){a=o?o[--s]:--s;if(!i){n=e[a];i=true}else{n=t.call(r,n,e[a],a,f)}});if(!i)throw new TypeError(N);return n};x.find=x.detect=function(e,t,n){var r;C(e,function(e,i,s){if(t.call(n,e,i,s)){r=e;return true}});return r};x.filter=x.select=function(e,t,n){var r=[];if(e==null)return r;if(v&&e.filter===v)return e.filter(t,n);T(e,function(e,i,s){if(t.call(n,e,i,s))r.push(e)});return r};x.reject=function(e,t,n){return x.filter(e,function(e,r,i){return!t.call(n,e,r,i)},n)};x.every=x.all=function(e,t,r){t||(t=x.identity);var i=true;if(e==null)return i;if(m&&e.every===m)return e.every(t,r);T(e,function(e,s,o){if(!(i=i&&t.call(r,e,s,o)))return n});return!!i};var C=x.some=x.any=function(e,t,r){t||(t=x.identity);var i=false;if(e==null)return i;if(g&&e.some===g)return e.some(t,r);T(e,function(e,s,o){if(i||(i=t.call(r,e,s,o)))return n});return!!i};x.contains=x.include=function(e,t){if(e==null)return false;if(y&&e.indexOf===y)return e.indexOf(t)!=-1;return C(e,function(e){return e===t})};x.invoke=function(e,t){var n=u.call(arguments,2);var r=x.isFunction(t);return x.map(e,function(e){return(r?t:e[t]).apply(e,n)})};x.pluck=function(e,t){return x.map(e,function(e){return e[t]})};x.where=function(e,t,n){if(x.isEmpty(t))return n?void 0:[];return x[n?"find":"filter"](e,function(e){for(var n in t){if(t[n]!==e[n])return false}return true})};x.findWhere=function(e,t){return x.where(e,t,true)};x.max=function(e,t,n){if(!t&&x.isArray(e)&&e[0]===+e[0]&&e.length<65535){return Math.max.apply(Math,e)}if(!t&&x.isEmpty(e))return-Infinity;var r={computed:-Infinity,value:-Infinity};T(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o>r.computed&&(r={value:e,computed:o})});return r.value};x.min=function(e,t,n){if(!t&&x.isArray(e)&&e[0]===+e[0]&&e.length<65535){return Math.min.apply(Math,e)}if(!t&&x.isEmpty(e))return Infinity;var r={computed:Infinity,value:Infinity};T(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o<r.computed&&(r={value:e,computed:o})});return r.value};x.shuffle=function(e){var t;var n=0;var r=[];T(e,function(e){t=x.random(n++);r[n-1]=r[t];r[t]=e});return r};var k=function(e){return x.isFunction(e)?e:function(t){return t[e]}};x.sortBy=function(e,t,n){var r=k(t);return x.pluck(x.map(e,function(e,t,i){return{value:e,index:t,criteria:r.call(n,e,t,i)}}).sort(function(e,t){var n=e.criteria;var r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(n<r||r===void 0)return-1}return e.index<t.index?-1:1}),"value")};var L=function(e,t,n,r){var i={};var s=k(t==null?x.identity:t);T(e,function(t,o){var u=s.call(n,t,o,e);r(i,u,t)});return i};x.groupBy=function(e,t,n){return L(e,t,n,function(e,t,n){(x.has(e,t)?e[t]:e[t]=[]).push(n)})};x.countBy=function(e,t,n){return L(e,t,n,function(e,t){if(!x.has(e,t))e[t]=0;e[t]++})};x.sortedIndex=function(e,t,n,r){n=n==null?x.identity:k(n);var i=n.call(r,t);var s=0,o=e.length;while(s<o){var u=s+o>>>1;n.call(r,e[u])<i?s=u+1:o=u}return s};x.toArray=function(e){if(!e)return[];if(x.isArray(e))return u.call(e);if(e.length===+e.length)return x.map(e,x.identity);return x.values(e)};x.size=function(e){if(e==null)return 0;return e.length===+e.length?e.length:x.keys(e).length};x.first=x.head=x.take=function(e,t,n){if(e==null)return void 0;return t!=null&&!n?u.call(e,0,t):e[0]};x.initial=function(e,t,n){return u.call(e,0,e.length-(t==null||n?1:t))};x.last=function(e,t,n){if(e==null)return void 0;if(t!=null&&!n){return u.call(e,Math.max(e.length-t,0))}else{return e[e.length-1]}};x.rest=x.tail=x.drop=function(e,t,n){return u.call(e,t==null||n?1:t)};x.compact=function(e){return x.filter(e,x.identity)};var A=function(e,t,n){if(t&&x.every(e,x.isArray)){return a.apply(n,e)}T(e,function(e){if(x.isArray(e)||x.isArguments(e)){t?o.apply(n,e):A(e,t,n)}else{n.push(e)}});return n};x.flatten=function(e,t){return A(e,t,[])};x.without=function(e){return x.difference(e,u.call(arguments,1))};x.uniq=x.unique=function(e,t,n,r){if(x.isFunction(t)){r=n;n=t;t=false}var i=n?x.map(e,n,r):e;var s=[];var o=[];T(i,function(n,r){if(t?!r||o[o.length-1]!==n:!x.contains(o,n)){o.push(n);s.push(e[r])}});return s};x.union=function(){return x.uniq(x.flatten(arguments,true))};x.intersection=function(e){var t=u.call(arguments,1);return x.filter(x.uniq(e),function(e){return x.every(t,function(t){return x.indexOf(t,e)>=0})})};x.difference=function(e){var t=a.apply(r,u.call(arguments,1));return x.filter(e,function(e){return!x.contains(t,e)})};x.zip=function(){var e=x.max(x.pluck(arguments,"length").concat(0));var t=new Array(e);for(var n=0;n<e;n++){t[n]=x.pluck(arguments,""+n)}return t};x.object=function(e,t){if(e==null)return{};var n={};for(var r=0,i=e.length;r<i;r++){if(t){n[e[r]]=t[r]}else{n[e[r][0]]=e[r][1]}}return n};x.indexOf=function(e,t,n){if(e==null)return-1;var r=0,i=e.length;if(n){if(typeof n=="number"){r=n<0?Math.max(0,i+n):n}else{r=x.sortedIndex(e,t);return e[r]===t?r:-1}}if(y&&e.indexOf===y)return e.indexOf(t,n);for(;r<i;r++)if(e[r]===t)return r;return-1};x.lastIndexOf=function(e,t,n){if(e==null)return-1;var r=n!=null;if(b&&e.lastIndexOf===b){return r?e.lastIndexOf(t,n):e.lastIndexOf(t)}var i=r?n:e.length;while(i--)if(e[i]===t)return i;return-1};x.range=function(e,t,n){if(arguments.length<=1){t=e||0;e=0}n=arguments[2]||1;var r=Math.max(Math.ceil((t-e)/n),0);var i=0;var s=new Array(r);while(i<r){s[i++]=e;e+=n}return s};var O=function(){};x.bind=function(e,t){var n,r;if(S&&e.bind===S)return S.apply(e,u.call(arguments,1));if(!x.isFunction(e))throw new TypeError;n=u.call(arguments,2);return r=function(){if(!(this instanceof r))return e.apply(t,n.concat(u.call(arguments)));O.prototype=e.prototype;var i=new O;O.prototype=null;var s=e.apply(i,n.concat(u.call(arguments)));if(Object(s)===s)return s;return i}};x.partial=function(e){var t=u.call(arguments,1);return function(){return e.apply(this,t.concat(u.call(arguments)))}};x.bindAll=function(e){var t=u.call(arguments,1);if(t.length===0)throw new Error("bindAll must be passed function names");T(t,function(t){e[t]=x.bind(e[t],e)});return e};x.memoize=function(e,t){var n={};t||(t=x.identity);return function(){var r=t.apply(this,arguments);return x.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}};x.delay=function(e,t){var n=u.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)};x.defer=function(e){return x.delay.apply(x,[e,1].concat(u.call(arguments,1)))};x.throttle=function(e,t,n){var r,i,s;var o=null;var u=0;n||(n={});var a=function(){u=n.leading===false?0:new Date;o=null;s=e.apply(r,i)};return function(){var f=new Date;if(!u&&n.leading===false)u=f;var l=t-(f-u);r=this;i=arguments;if(l<=0){clearTimeout(o);o=null;u=f;s=e.apply(r,i)}else if(!o&&n.trailing!==false){o=setTimeout(a,l)}return s}};x.debounce=function(e,t,n){var r;var i=null;return function(){var s=this,o=arguments;var u=function(){i=null;if(!n)r=e.apply(s,o)};var a=n&&!i;clearTimeout(i);i=setTimeout(u,t);if(a)r=e.apply(s,o);return r}};x.once=function(e){var t=false,n;return function(){if(t)return n;t=true;n=e.apply(this,arguments);e=null;return n}};x.wrap=function(e,t){return function(){var n=[e];o.apply(n,arguments);return t.apply(this,n)}};x.compose=function(){var e=arguments;return function(){var t=arguments;for(var n=e.length-1;n>=0;n--){t=[e[n].apply(this,t)]}return t[0]}};x.after=function(e,t){return function(){if(--e<1){return t.apply(this,arguments)}}};x.keys=E||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)if(x.has(e,n))t.push(n);return t};x.values=function(e){var t=[];for(var n in e)if(x.has(e,n))t.push(e[n]);return t};x.pairs=function(e){var t=[];for(var n in e)if(x.has(e,n))t.push([n,e[n]]);return t};x.invert=function(e){var t={};for(var n in e)if(x.has(e,n))t[e[n]]=n;return t};x.functions=x.methods=function(e){var t=[];for(var n in e){if(x.isFunction(e[n]))t.push(n)}return t.sort()};x.extend=function(e){T(u.call(arguments,1),function(t){if(t){for(var n in t){e[n]=t[n]}}});return e};x.pick=function(e){var t={};var n=a.apply(r,u.call(arguments,1));T(n,function(n){if(n in e)t[n]=e[n]});return t};x.omit=function(e){var t={};var n=a.apply(r,u.call(arguments,1));for(var i in e){if(!x.contains(n,i))t[i]=e[i]}return t};x.defaults=function(e){T(u.call(arguments,1),function(t){if(t){for(var n in t){if(e[n]===void 0)e[n]=t[n]}}});return e};x.clone=function(e){if(!x.isObject(e))return e;return x.isArray(e)?e.slice():x.extend({},e)};x.tap=function(e,t){t(e);return e};var M=function(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;if(e instanceof x)e=e._wrapped;if(t instanceof x)t=t._wrapped;var i=f.call(e);if(i!=f.call(t))return false;switch(i){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if(typeof e!="object"||typeof t!="object")return false;var s=n.length;while(s--){if(n[s]==e)return r[s]==t}var o=e.constructor,u=t.constructor;if(o!==u&&!(x.isFunction(o)&&o instanceof o&&x.isFunction(u)&&u instanceof u)){return false}n.push(e);r.push(t);var a=0,l=true;if(i=="[object Array]"){a=e.length;l=a==t.length;if(l){while(a--){if(!(l=M(e[a],t[a],n,r)))break}}}else{for(var c in e){if(x.has(e,c)){a++;if(!(l=x.has(t,c)&&M(e[c],t[c],n,r)))break}}if(l){for(c in t){if(x.has(t,c)&&!(a--))break}l=!a}}n.pop();r.pop();return l};x.isEqual=function(e,t){return M(e,t,[],[])};x.isEmpty=function(e){if(e==null)return true;if(x.isArray(e)||x.isString(e))return e.length===0;for(var t in e)if(x.has(e,t))return false;return true};x.isElement=function(e){return!!(e&&e.nodeType===1)};x.isArray=w||function(e){return f.call(e)=="[object Array]"};x.isObject=function(e){return e===Object(e)};T(["Arguments","Function","String","Number","Date","RegExp"],function(e){x["is"+e]=function(t){return f.call(t)=="[object "+e+"]"}});if(!x.isArguments(arguments)){x.isArguments=function(e){return!!(e&&x.has(e,"callee"))}}if(typeof /./!=="function"){x.isFunction=function(e){return typeof e==="function"}}x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))};x.isNaN=function(e){return x.isNumber(e)&&e!=+e};x.isBoolean=function(e){return e===true||e===false||f.call(e)=="[object Boolean]"};x.isNull=function(e){return e===null};x.isUndefined=function(e){return e===void 0};x.has=function(e,t){return l.call(e,t)};x.noConflict=function(){e._=t;return this};x.identity=function(e){return e};x.times=function(e,t,n){var r=Array(Math.max(0,e));for(var i=0;i<e;i++)r[i]=t.call(n,i);return r};x.random=function(e,t){if(t==null){t=e;e=0}return e+Math.floor(Math.random()*(t-e+1))};var _={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};_.unescape=x.invert(_.escape);var D={escape:new RegExp("["+x.keys(_.escape).join("")+"]","g"),unescape:new RegExp("("+x.keys(_.unescape).join("|")+")","g")};x.each(["escape","unescape"],function(e){x[e]=function(t){if(t==null)return"";return(""+t).replace(D[e],function(t){return _[e][t]})}});x.result=function(e,t){if(e==null)return void 0;var n=e[t];return x.isFunction(n)?n.call(e):n};x.mixin=function(e){T(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];o.apply(e,arguments);return F.call(this,n.apply(x,e))}})};var P=0;x.uniqueId=function(e){var t=++P+"";return e?e+t:t};x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var H=/(.)^/;var B={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"};var j=/\\|'|\r|\n|\t|\u2028|\u2029/g;x.template=function(e,t,n){var r;n=x.defaults({},n,x.templateSettings);var i=new RegExp([(n.escape||H).source,(n.interpolate||H).source,(n.evaluate||H).source].join("|")+"|$","g");var s=0;var o="__p+='";e.replace(i,function(t,n,r,i,u){o+=e.slice(s,u).replace(j,function(e){return"\\"+B[e]});if(n){o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"}if(r){o+="'+\n((__t=("+r+"))==null?'':__t)+\n'"}if(i){o+="';\n"+i+"\n__p+='"}s=u+t.length;return t});o+="';\n";if(!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{r=new Function(n.variable||"obj","_",o)}catch(u){u.source=o;throw u}if(t)return r(t,x);var a=function(e){return r.call(this,e,x)};a.source="function("+(n.variable||"obj")+"){\n"+o+"}";return a};x.chain=function(e){return x(e).chain()};var F=function(e){return this._chain?x(e).chain():e};x.mixin(x);T(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];x.prototype[e]=function(){var n=this._wrapped;t.apply(n,arguments);if((e=="shift"||e=="splice")&&n.length===0)delete n[0];return F.call(this,n)}});T(["concat","join","slice"],function(e){var t=r[e];x.prototype[e]=function(){return F.call(this,t.apply(this._wrapped,arguments))}});x.extend(x.prototype,{chain:function(){this._chain=true;return this},value:function(){return this._wrapped}})}).call(this);e.util={};e.util.bindEverything=function(t,n){if(e.util.isObject(t)&&typeof t!="function"){var r={};for(var i in t){r[i]=e.util.bindEverything(t[i],n)}return r}else if(typeof t=="function"){return e.util.bind(t,n)}else{return e.util.clone(t)}};e.util.UID=function(e){var e=typeof e=="string"?e+"_":"";var t=(new Date).getTime();var n=Math.floor(Math.random()*1e3);var r=Math.floor(Math.random()*1e3);return""+e+t+"_"+n+"_"+r};e.util.createDropDown=function(t,n,r){var i=e.refs.$("<select>");for(var s=0;s<n.length;s++){i.append(e.refs.$("<option>").attr("value",t[s]).text(n[s]))}i.find("option").eq(typeof r=="number"?r:0).prop("selected",true);return i};e.util.createRadio=function(t,n){var r=e.util.UID();var i=false;if(typeof n!=="number"){n=0}var s=e.refs.$("<div>").addClass("btn-group");var o=e.refs.$("<div>").hide();for(var u=0;u<t.length;u++){s.append(e.refs.$("<button>").addClass("btn").text(t[u]));o.append(e.refs.$("<input type='radio' name='"+r+"' value='"+e.util.UID()+"'>"))}var a=s.find("button");var f=o.find("input");a.on("click",function(){var e=f.eq(a.index(this));e[0].checked=true;f.change()});f.change(function(t){a.removeClass("active");f.each(function(t){var n=e.refs.$(this);if(n.is(":checked")){a.eq(t).addClass("active")}});t.stopPropagation()});f.eq(n)[0].checked=true;f.change();return e.refs.$("<div>").append(s,o)};e.util.createTabs=function(t,n,r){var r=e.util.defined(r);var i=e.util.defined(r.tabParams);var s=typeof r.type=="string"?r.type:"";var o=typeof r.select=="function"?r.select:function(){};var u=typeof r.unselect=="function"?r.unselect:function(){};var a=[];var f=e.refs.$("<div>").addClass("tabbable "+s);var l=e.refs.$("<ul>").appendTo(f).addClass("nav nav-tabs");var c=e.refs.$("<div>").addClass("tab-content").appendTo(f);for(var h=0;h<t.length;h++){var p=e.util.UID();a.push("#"+p);l.append(e.refs.$("<li>").append(e.refs.$("<a>").attr("data-toggle","tab").attr("href","#"+p).text(t[h])));e.refs.$("<div>").append(n[h]).attr("id",p).addClass("tab-pane").appendTo(c)}c.children().eq(0).addClass("active");e.refs.$('a[data-toggle="tab"]',l).on("shown",function(t){if(typeof t.relatedTarget!="undefined"){var r=e.refs.$(t.relatedTarget);var i=a.indexOf(r.attr("href"));u(r.text(),e.refs.$(n[i]))}var s=e.refs.$(t.target);var i=a.indexOf(s.attr("href"));o(s.text(),e.refs.$(n[i]))});e.refs.$('a[data-toggle="tab"]',l).eq(0).tab("show");return f};e.util.argWrap=function(e,t){return function(){var n=[];for(var r=0;r<arguments.length;r++){n.push(arguments[r])}return e.apply(this,t(n))}};e.util.argSlice=function(t,n,r){return e.util.argWrap(t,function(e){return e.slice(n,r)})};e.util.objectEquals=function(e,t){try{return JSON.stringify(e)==JSON.stringify(t)}catch(n){return e==t}};e.util.closest=function(t,n){var t=e.refs.$(t);if(typeof n=="function"){while(t.length>0){if(n.call(t[0],t)){break}t=t.parent()}return t}else{return t.closest(n)}};e.util.markHidden=function(t){return e.util.markDefault(t).addClass("JOBAD_Ignore")};e.util.markVisible=function(t){return e.util.markDefault(t).addClass("JOBAD_Notice")};e.util.markDefault=function(t){return e.refs.$(t).removeClass("JOBAD_Ignore").removeClass("JOBAD_Notice")};e.util.isMarkedHidden=function(t){return e.util.closest(t,function(e){return e.hasClass("JOBAD_Ignore")}).length>0};e.util.isMarkedVisible=function(t){return e.refs.$(t).hasClass("JOBAD_Notice");};e.util.isHidden=function(t){var t=e.refs.$(t);if(e.util.isMarkedVisible(t)){return false}else if(e.util.isMarkedHidden(t)){return true}else if(t.is("map")||t.is("area")){return false}else{return t.is(":hidden")}};e.util.defined=function(e){return typeof e=="undefined"?{}:e};e.util.forceBool=function(e,t){if(typeof t=="undefined"){t=e}return typeof e=="boolean"?e:t?true:false};e.util.forceArray=function(t,n){var n=n;if(typeof n=="undefined"){if(typeof t=="undefined"){n=[]}else{n=[t]}}if(!e.util.isArray(n)){n=[n]}return e.util.isArray(t)?t:n};e.util.forceFunction=function(e,t){var t=t;var e=e;if(typeof e=="function"){return e}else if(typeof t=="undefined"){return function(){return e}}else if(typeof t=="function"){return t}else{return function(){return t}}};e.util.ifType=function(e,t,n){return e instanceof t?e:n};e.util.equalsIgnoreCase=function(e,t){var e=String(e);var t=String(t);return e.toLowerCase()==t.toLowerCase()};e.util.orderTree=function(t){var t=e.refs.$(t);return e.refs.$(t.get().sort(function(n,r){var n=e.refs.$(n).parents().filter(t).length;var r=e.refs.$(r).parents().filter(t).length;if(n<r){return-1}else if(n>r){return 1}else{return 0}}))};e.util.isUrl=function(t){var t=String(t);var n=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi;var r=t.match(new RegExp(n));if(e.util.isArray(r)){return r.length>0}else{return e.util.startsWith(t,"data:")}};e.util.startsWith=function(e,t){var e=String(e);var t=String(t);return e.substring(0,t.length)==t};e.util.lOr=function(){var t=[];for(var n=0;n<arguments.length;n++){t.push(arguments[n])}t=e.util.map(e.util.flatten(t),e.util.forceBool);return e.util.indexOf(t,true)!=-1};e.util.lAnd=function(){var t=[];for(var n=0;n<arguments.length;n++){t.push(arguments[n])}t=e.util.map(e.util.flatten(t),e.util.forceBool);return e.util.indexOf(t,false)==-1};e.util.containsAll=function(t,n,r){var t=e.refs.$(t);var r=e.util.forceBool(r,false);return e.util.lAnd(e.refs.$(n).map(function(){return t.is(n)||r&&t.find(n).length>0}).get())};e.util.loadExternalJS=function(t,n,r,i){var s=15e3;var o=false;var i=e.util.forceFunction(i,function(){});var u=function(r){if(o){return}o=true;var i=e.util.forceFunction(n,function(){});var s=typeof s=="undefined"?window:s;i.call(s,t,r)};if(e.util.isArray(t)){var a=0;var f=function(n,s){if(a>=t.length||!s){window.setTimeout(function(){u(s)},0)}else{e.util.loadExternalJS(t[a],function(e,t){a++;f(e,t)},r,i)}};window.setTimeout(function(){f("",true)},0);return t.length}else{var l=document.createElement("script");l.type="text/javascript";if(l.readyState){l.onreadystatechange=function(){if(l.readyState=="loaded"||l.readyState=="complete"){l.onreadystatechange=null;window.setTimeout(function(){u(true)},0)}}}else{l.onload=function(){window.setTimeout(function(){u(true)},0)}}l.src=e.util.resolve(t);i(t);document.getElementsByTagName("head")[0].appendChild(l);window.setTimeout(function(){u(false)},s);return 1}};e.util.loadExternalCSS=function(t,n,r,i){var s=15e3;var o=false;var u,a;var i=e.util.forceFunction(i,function(){});var f=function(r){if(o){return}o=true;try{}catch(i){clearInterval(u);clearTimeout(a)}var s=e.util.forceFunction(n,function(){});var f=typeof f=="undefined"?window:f;s.call(f,t,r)};if(e.util.isArray(t)){var l=0;var c=function(n,s){if(l>=t.length||!s){window.setTimeout(function(){f(s)},0)}else{e.util.loadExternalCSS(t[l],function(e,t){l++;c(e,t)},r,i)}};window.setTimeout(function(){c("",true)},0);return t.length}else{var h=document.getElementsByTagName("head")[0];var p=document.createElement("link");p.setAttribute("href",t);p.setAttribute("rel","stylesheet");p.setAttribute("type","text/css");var d,v;u=setInterval(function(){try{if("sheet"in p){if(p.sheet&&p.sheet.cssRules.length){clearInterval(u);clearTimeout(a);f(true)}}else{if(p.styleSheet&&p.styleSheet.rules.length>0){clearInterval(u);clearTimeout(a);f(true)}}if(p[d]&&p[d][v].length>0){clearInterval(u);clearTimeout(a);f(true)}}catch(e){}},1e3);a=setTimeout(function(){clearInterval(u);f(false)},s);p.onload=function(){f(true)};if(p.addEventListener){p.addEventListener("load",function(){f(true)},false)}p.onreadystatechange=function(){var e=p.readyState;if(e==="loaded"||e==="complete"){p.onreadystatechange=null;f(true)}};i(t);h.appendChild(p);return 1}};e.util.escapeHTML=function(e){return e.split("&").join("&").split("<").join("<").split('"').join(""")};e.util.resolve=function(t,n,r){var i=false;var s,o,u;if(typeof n=="string"){i=true;s=e.util.resolve(n,true);o=e.refs.$("base").detach();u=e.refs.$("<base>").attr("href",s).appendTo("head")}var a=document.createElement("div");a.innerHTML='<a href="'+e.util.escapeHTML(t)+'">x</a>';var t=a.firstChild.href;if(i){u.remove();o.appendTo("head")}if((n===true||r===true)&&t[t.length-1]!="/"){t=t+"/"}return t};e.util.on=function(t,n,r){var t=e.refs.$(t);var i=e.util.UID();var r=e.util.forceFunction(r,function(){});r=e.util.argSlice(r,1);t.on(n+".core."+i,function(t){var n=e.util.forceArray(t.result);n.push(r.apply(this,arguments));return n});return n+".core."+i};e.util.once=function(t,n,r){var i;i=e.util.on(t,n,function(){var n=r.apply(this,arguments);e.util.off(t,i)})};e.util.off=function(t,n){var t=e.refs.$(t);t.off(n)};e.util.toKeyString=function(e){var t=(e.ctrlKey||e.keyCode==17?"ctrl+":"")+(e.altKey||e.keyCode==18?"alt+":"")+(e.shiftKey||e.keyCode==16?"shift+":"");var n={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",186:";",191:"/",220:"\\",222:"'",224:"meta"};if(!e.charCode&&n[e.keyCode]){t+=n[e.keyCode]}else{if(t==""&&event.type=="keypress"){return false}else{t+=String.fromCharCode(e.charCode||e.keyCode).toLowerCase()}}if(t[t.length-1]=="+"){return t.substring(0,t.length-1)}else{return t}};e.util.onKey=function(t){var n=e.util.UID();e.refs.$(document).on("keydown."+n+" keypress."+n,function(n){var r=e.util.toKeyString(n);if(!r){return}var i=t.call(undefined,r,n);if(i===false){n.preventDefault();n.stopPropagation();return false}});return"keydown."+n+" keypress."+n};e.util.trigger=function(t,n,r){var t=e.refs.$(t);var i;var r=e.util.forceArray(r).slice(0);r.unshift(n);var s=e.util.UID();t.on(n+"."+s,function(e){i=e.result});t.trigger.apply(t,r);t.off(n+"."+s);return i};e.util.EventHandler=function(t){var n={};var r=e.refs.$("<div>");n.on=function(n,i){return e.util.on(r,n,i.bind(t))};n.once=function(n,i){return e.util.once(r,n,i.bind(t))};n.off=function(t){return e.util.off(r,t)};n.trigger=function(t,n){return e.util.trigger(r,t,n)};return n};e.util.getCurrentOrigin=function(){var t=e.refs.$("script");var n=t[t.length-1].src;return n==""||jQuery.isReady||!n?location.href:n};e.util.permuteArray=function(t,n,r){var t=e.refs.$.makeArray(t);if(!e.util.isArray(t)){return t}var n=e.util.limit(n,0,t.length);var r=e.util.limit(r,0,t.length);var t=t.slice(0);var i=t[n];t[n]=t[r];t[r]=i;return t};e.util.limit=function(t,n,r){if(n>=r){return t<r?r:t>n?n:t}else{return e.util.limit(t,r,n)}};_.mixin(e.util);e.util=_.noConflict();e.resources={};e.resources.getIconResource=function(t,n){var n=e.util.defined(n);if(n.hasOwnProperty(t)){t=n[t]}if(e.resources.icon.hasOwnProperty(t)){return e.resources.icon[t]}else if(e.util.isUrl(t)){return t}else{e.console.warn("Can't find icon resource: '"+t+"' does not match any resource name. ");return e.resources.icon["error"]}};e.resources.getTextResource=function(t){if(e.resources.text.hasOwnProperty(t)){return e.resources.text[t]}else{e.console.warn("Can't find text resource: '"+t+"' does not match any resource name. ");return"Missing resource: '"+t+"'"}};e.resources.provide=function(t,n,r){if(t!="text"&&t!="icon"){JOABD.console.warn("First paramater JOBAD.resources.provide must be either 'text' or 'icon'. ");return}var i={};if(e.util.isObject(n)){i=n}else{i[n]=r}e.resources[t]=e.util.extend(e.util.defined(e.resources[t]),i)};e.resources.available=function(t,n){if(t!="text"&&t!="icon"){JOABD.console.warn("First paramater JOBAD.resources.available must be either 'text' or 'icon'. ");return}return e.util.defined(e.resources[t]).hasOwnProperty(n)};e.resources.provide("text",{gpl_v3_text:' GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers\' and authors\' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users\' and\nauthors\' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users\' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n "This License" refers to version 3 of the GNU General Public License.\n\n "Copyright" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n "The Program" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as "you". "Licensees" and\n"recipients" may be individuals or organizations.\n\n To "modify" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a "modified version" of the\nearlier work or a work "based on" the earlier work.\n\n A "covered work" means either the unmodified Program or a work based\non the Program.\n\n To "propagate" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To "convey" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays "Appropriate Legal Notices"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The "source code" for a work means the preferred form of the work\nfor making modifications to it. "Object code" means any non-source\nform of a work.\n\n A "Standard Interface" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The "System Libraries" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n"Major Component", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The "Corresponding Source" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work\'s\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users\' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work\'s\nusers, your or third parties\' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program\'s source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n "keep intact all notices".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n"aggregate" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation\'s users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A "User Product" is either (1) a "consumer product", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, "normally used" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n "Installation Information" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n "Additional permissions" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered "further\nrestrictions" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An "entity transaction" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party\'s predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A "contributor" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor\'s "contributor version".\n\n A contributor\'s "essential patent claims" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, "control" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor\'s essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a "patent license" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To "grant" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. "Knowingly relying" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient\'s use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is "discriminatory" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others\' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License "or any later version" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy\'s\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe "copyright" line and a pointer to where the full notice is found.\n\n <one line to give the program\'s name and a brief idea of what it does.>\n Copyright (C) <year> <name of author>\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n <program> Copyright (C) <year> <name of author>\n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c\' for details.\n\nThe hypothetical commands `show w\' and `show c\' should show the appropriate\nparts of the General Public License. Of course, your program\'s commands\nmight be different; for a GUI interface, you would use an "about box".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a "copyright disclaimer" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.',jquery_license:'Copyright 2013 jQuery Foundation and other contributors\nhttp://jquery.com/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n"Software"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.',underscore_license:'Copyright (c) 2009-2013 Jeremy Ashkenas, DocumentCloud\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the "Software"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.',jobad_license:"JOBAD - JavaScript API for OMDoc-based Active Documents\n\nCopyright (C) 2013 KWARC Group <kwarc.info>\n\nJOBAD is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nJOBAD is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with JOBAD. If not, see <http://www.gnu.org/licenses/>.",bootstrap_license:' Apache License\r\n Version 2.0, January 2004\r\n http://www.apache.org/licenses/\r\n\r\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r\n\r\n 1. Definitions.\r\n\r\n "License" shall mean the terms and conditions for use, reproduction,\r\n and distribution as defined by Sections 1 through 9 of this document.\r\n\r\n "Licensor" shall mean the copyright owner or entity authorized by\r\n the copyright owner that is granting the License.\r\n\r\n "Legal Entity" shall mean the union of the acting entity and all\r\n other entities that control, are controlled by, or are under common\r\n control with that entity. For the purposes of this definition,\r\n "control" means (i) the power, direct or indirect, to cause the\r\n direction or management of such entity, whether by contract or\r\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\r\n outstanding shares, or (iii) beneficial ownership of such entity.\r\n\r\n "You" (or "Your") shall mean an individual or Legal Entity\r\n exercising permissions granted by this License.\r\n\r\n "Source" form shall mean the preferred form for making modifications,\r\n including but not limited to software source code, documentation\r\n source, and configuration files.\r\n\r\n "Object" form shall mean any form resulting from mechanical\r\n transformation or translation of a Source form, including but\r\n not limited to compiled object code, generated documentation,\r\n and conversions to other media types.\r\n\r\n "Work" shall mean the work of authorship, whether in Source or\r\n Object form, made available under the License, as indicated by a\r\n copyright notice that is included in or attached to the work\r\n (an example is provided in the Appendix below).\r\n\r\n "Derivative Works" shall mean any work, whether in Source or Object\r\n form, that is based on (or derived from) the Work and for which the\r\n editorial revisions, annotations, elaborations, or other modifications\r\n represent, as a whole, an original work of authorship. For the purposes\r\n of this License, Derivative Works shall not include works that remain\r\n separable from, or merely link (or bind by name) to the interfaces of,\r\n the Work and Derivative Works thereof.\r\n\r\n "Contribution" shall mean any work of authorship, including\r\n the original version of the Work and any modifications or additions\r\n to that Work or Derivative Works thereof, that is intentionally\r\n submitted to Licensor for inclusion in the Work by the copyright owner\r\n or by an individual or Legal Entity authorized to submit on behalf of\r\n the copyright owner. For the purposes of this definition, "submitted"\r\n means any form of electronic, verbal, or written communication sent\r\n to the Licensor or its representatives, including but not limited to\r\n communication on electronic mailing lists, source code control systems,\r\n and issue tracking systems that are managed by, or on behalf of, the\r\n Licensor for the purpose of discussing and improving the Work, but\r\n excluding communication that is conspicuously marked or otherwise\r\n designated in writing by the copyright owner as "Not a Contribution."\r\n\r\n "Contributor" shall mean Licensor and any individual or Legal Entity\r\n on behalf of whom a Contribution has been received by Licensor and\r\n subsequently incorporated within the Work.\r\n\r\n 2. Grant of Copyright License. Subject to the terms and conditions of\r\n this License, each Contributor hereby grants to You a perpetual,\r\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r\n copyright license to reproduce, prepare Derivative Works of,\r\n publicly display, publicly perform, sublicense, and distribute the\r\n Work and such Derivative Works in Source or Object form.\r\n\r\n 3. Grant of Patent License. Subject to the terms and conditions of\r\n this License, each Contributor hereby grants to You a perpetual,\r\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r\n (except as stated in this section) patent license to make, have made,\r\n use, offer to sell, sell, import, and otherwise transfer the Work,\r\n where such license applies only to those patent claims licensable\r\n by such Contributor that are necessarily infringed by their\r\n Contribution(s) alone or by combination of their Contribution(s)\r\n with the Work to which such Contribution(s) was submitted. If You\r\n institute patent litigation against any entity (including a\r\n cross-claim or counterclaim in a lawsuit) alleging that the Work\r\n or a Contribution incorporated within the Work constitutes direct\r\n or contributory patent infringement, then any patent licenses\r\n granted to You under this License for that Work shall terminate\r\n as of the date such litigation is filed.\r\n\r\n 4. Redistribution. You may reproduce and distribute copies of the\r\n Work or Derivative Works thereof in any medium, with or without\r\n modifications, and in Source or Object form, provided that You\r\n meet the following conditions:\r\n\r\n (a) You must give any other recipients of the Work or\r\n Derivative Works a copy of this License; and\r\n\r\n (b) You must cause any modified files to carry prominent notices\r\n stating that You changed the files; and\r\n\r\n (c) You must retain, in the Source form of any Derivative Works\r\n that You distribute, all copyright, patent, trademark, and\r\n attribution notices from the Source form of the Work,\r\n excluding those notices that do not pertain to any part of\r\n the Derivative Works; and\r\n\r\n (d) If the Work includes a "NOTICE" text file as part of its\r\n distribution, then any Derivative Works that You distribute must\r\n include a readable copy of the attribution notices contained\r\n within such NOTICE file, excluding those notices that do not\r\n pertain to any part of the Derivative Works, in at least one\r\n of the following places: within a NOTICE text file distributed\r\n as part of the Derivative Works; within the Source form or\r\n documentation, if provided along with the Derivative Works; or,\r\n within a display generated by the Derivative Works, if and\r\n wherever such third-party notices normally appear. The contents\r\n of the NOTICE file are for informational purposes only and\r\n do not modify the License. You may add Your own attribution\r\n notices within Derivative Works that You distribute, alongside\r\n or as an addendum to the NOTICE text from the Work, provided\r\n that such additional attribution notices cannot be construed\r\n as modifying the License.\r\n\r\n You may add Your own copyright statement to Your modifications and\r\n may provide additional or different license terms and conditions\r\n for use, reproduction, or distribution of Your modifications, or\r\n for any such Derivative Works as a whole, provided Your use,\r\n reproduction, and distribution of the Work otherwise complies with\r\n the conditions stated in this License.\r\n\r\n 5. Submission of Contributions. Unless You explicitly state otherwise,\r\n any Contribution intentionally submitted for inclusion in the Work\r\n by You to the Licensor shall be under the terms and conditions of\r\n this License, without any additional terms or conditions.\r\n Notwithstanding the above, nothing herein shall supersede or modify\r\n the terms of any separate license agreement you may have executed\r\n with Licensor regarding such Contributions.\r\n\r\n 6. Trademarks. This License does not grant permission to use the trade\r\n names, trademarks, service marks, or product names of the Licensor,\r\n except as required for reasonable and customary use in describing the\r\n origin of the Work and reproducing the content of the NOTICE file.\r\n\r\n 7. Disclaimer of Warranty. Unless required by applicable law or\r\n agreed to in writing, Licensor provides the Work (and each\r\n Contributor provides its Contributions) on an "AS IS" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r\n implied, including, without limitation, any warranties or conditions\r\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r\n PARTICULAR PURPOSE. You are solely responsible for determining the\r\n appropriateness of using or redistributing the Work and assume any\r\n risks associated with Your exercise of permissions under this License.\r\n\r\n 8. Limitation of Liability. In no event and under no legal theory,\r\n whether in tort (including negligence), contract, or otherwise,\r\n unless required by applicable law (such as deliberate and grossly\r\n negligent acts) or agreed to in writing, shall any Contributor be\r\n liable to You for damages, including any direct, indirect, special,\r\n incidental, or consequential damages of any character arising as a\r\n result of this License or out of the use or inability to use the\r\n Work (including but not limited to damages for loss of goodwill,\r\n work stoppage, computer failure or malfunction, or any and all\r\n other commercial damages or losses), even if such Contributor\r\n has been advised of the possibility of such damages.\r\n\r\n 9. Accepting Warranty or Additional Liability. While redistributing\r\n the Work or Derivative Works thereof, You may choose to offer,\r\n and charge a fee for, acceptance of support, warranty, indemnity,\r\n or other liability obligations and/or rights consistent with this\r\n License. However, in accepting such obligations, You may act only\r\n on Your own behalf and on Your sole responsibility, not on behalf\r\n of any other Contributor, and only if You agree to indemnify,\r\n defend, and hold each Contributor harmless for any liability\r\n incurred by, or claims asserted against, such Contributor by reason\r\n of your accepting any such warranty or additional liability.\r\n\r\n END OF TERMS AND CONDITIONS',jquery_color_license:'Copyright 2013 jQuery Foundation and other contributors,\nhttp://jquery.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n"Software"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. '});e.resources.provide("icon",{warning:"data:image/png;base64,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",info:"data:image/png;base64,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",error:"data:image/png;base64,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",open:"data:image/png;base64,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",close:"data:image/png;base64,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"});var t={};var n={};e.repo=function(){e.repo.buildPage("body","./")};e.repo.buildPage=function(n,r,s){var s=e.util.forceFunction(s,function(){});var o=e.refs.$("<div class='JOBAD JOBAD_Repo JOBAD_Repo_Body'>").appendTo(e.refs.$(n).empty());var u=e.refs.$("<div class='bar'>");u.wrap("<div class='progress'>").parent().wrap("<div class='JOBAD JOBAD_Repo JOBAD_Repo_MsgBox'>").parent().appendTo(o);var a=e.refs.$("<div class='progress-label'>").text("Loading Repository, please wait ...").appendTo(u);u.css({width:0});var f=e.util.resolve(r);f=f.substring(0,f.length-1);e.repo.init(f,function(n,r){u.css({width:"25%"});if(!n){a.text("Repository loading failed: "+r);return}var l=r.name;var c=r.description;o.append(e.refs.$("<h1 class='JOBAD JOBAD_Repo JOBAD_Repo_Title'>").text(l),e.refs.$("<div class='JOBAD JOBAD_Repo JOBAD_Repo_Desc'>").text(c));var h=e.refs.$("<table class='JOBAD JOBAD_Repo JOBAD_Repo_Table'>").appendTo(o);h.append(e.refs.$("<thead>").append(e.refs.$("<tr>").append(e.refs.$("<th>").text("Identifier"),e.refs.$("<th>").text("Name"),e.refs.$("<th>").text("Author"),e.refs.$("<th>").text("Version"),e.refs.$("<th>").text("Homepage"),e.refs.$("<th>").text("Description"),e.refs.$("<th>").text("Module Dependencies"),e.refs.$("<th>").text("External JavaScript Dependencies"),e.refs.$("<th>").text("External CSS Dependencies")).children("th").click(function(){e.UI.sortTableBy(this,"rotate",function(e){this.parent().find("span").remove();if(e==1){this.append("<span class='JOBAD JOBAD_Repo JOBAD_Sort_Ascend'>")}else if(e==2){this.append("<span class='JOBAD JOBAD_Repo JOBAD_Sort_Descend'>")}});return false}).end()));a.text("Loading module information ...");var p=e.util.keys(t[f]);var d=p.length;var v=0;var m=function(){u.css({width:""+(25+75*((v+1)/p.length))*100+"%"});var t=p[v];if(v>=p.length){a.text("Finished. ");u.parent().fadeOut(1e3);s(o);return}a.text("Loading module information ["+(v+1)+"/"+d+']: "'+t+'"');e.repo.loadFrom(f,p[v],function(n){if(!n){h.append(e.refs.$("<tr>").append(e.refs.$("<td></td>").text(t),"<td colspan='7'>Loading failed: Timeout</td>").css("color","red"))}else if(typeof i[t]=="undefined"){h.append(e.refs.$("<tr>").append(e.refs.$("<td></td>").text(t),"<td colspan='7'>Loading failed: Module specification incorrect. </td>").css("color","red"))}else{var r=i[t].info;var s=e.refs.$("<tr>").appendTo(h);e.refs.$("<td></td>").text(r.identifier).appendTo(s);e.refs.$("<td></td>").text(r.title).appendTo(s);e.refs.$("<td></td>").text(r.author).appendTo(s);if(r.version!==""){e.refs.$("<td></td>").text(r.version).appendTo(s)}else{e.refs.$("<td><span class='JOBAD JOBAD_Repo JOBAD_Repo_NA'></span></td>").appendTo(s)}if(typeof r.url=="string"){e.refs.$("<td></td>").append(e.refs.$("<a>").text(r.url).attr("href",r.url).attr("target","_blank").button()).appendTo(s)}else{e.refs.$("<td><span class='JOBAD JOBAD_Repo JOBAD_Repo_NA'></span></td>").appendTo(s)}e.refs.$("<td></td>").text(r.description).appendTo(s);var o=r.dependencies;if(o.length==0){e.refs.$("<td></td>").text("(None)").appendTo(s)}else{var u=e.refs.$("<td></td>").appendTo(s);for(var a=0;a<o.length;a++){u.append('"');if(e.util.indexOf(p,o[a])==-1){u.append(e.refs.$("<span>").addClass("JOBAD JOBAD_Repo JOBAD_Repo_Dependency JOBAD_Repo_Dependency_NotFound").text('"'+o[a]+'"'))}else{u.append(e.refs.$("<span>").addClass("JOBAD JOBAD_Repo JOBAD_Repo_Dependency JOBAD_Repo_Dependency_Found").text(o[a]))}u.append('"');if(a!=o.length-1){u.append(" , ")}}}var f=r.externals.js;if(f.length==0){e.refs.$("<td></td>").text("(None)").appendTo(s)}else{var u=e.refs.$("<td></td>").appendTo(s);for(var a=0;a<f.length;a++){u.append('"',e.refs.$("<span>").addClass("JOBAD JOBAD_Repo JOBAD_Repo_External_Dependency").text(f[a]),'"');if(a!=f.length-1){u.append(" , ")}}}var f=r.externals.css;if(f.length==0){e.refs.$("<td></td>").text("(None)").appendTo(s)}else{var u=e.refs.$("<td></td>").appendTo(s);for(var a=0;a<f.length;a++){u.append('"',e.refs.$("<span>").addClass("JOBAD JOBAD_Repo JOBAD_Repo_External_Dependency").text(f[a]),'"');if(a!=f.length-1){u.append(" , ")}}}}delete i[t];v++;m()})};m()})};var r=false;e.repo.init=function(i,s){var s=e.util.forceFunction(s,function(){});if(e.util.isArray(i)){if(i.length==0){return s(true)}else{var o=i[0];var u=i.slice(1);return e.repo.init(o,function(){e.repo.init(u,s)})}}if(e.repo.hasInit(i)){return s(true)}if(r){return false}r=true;var i=e.util.resolve(i);var a;e.repo.config=function(e){a=e};e.util.loadExternalJS(e.util.resolve("jobad_repo.js",i),function(o){delete e.repo.config;if(!o){s(false,"Repository Main File Timeout");r=false;return}if(!e.util.isObject(a)){s(false,"Repository in wrong Format: Not an object");r=false;return}if(!e.util.isArray(a.versions)){s(false,"Repository Spec in wrong Format: Versions missing or not an array. ");r=false;return}if(e.util.indexOf(a.versions,e.version)==-1){s(false,"Repository incompatible with this version of JOBAD. ");r=false;return}if(!e.util.isArray(a.provides)){s(false,"Repository Spec in wrong Format: Modules missing or not an array. ");r=false;return}var u={};if(e.util.isObject(a.at)){u=a.at}var f=a.provides.slice(0);t[i]={};for(var l=0;l<f.length;l++){var c=f[l];if(u.hasOwnProperty(c)){t[i][c]=e.util.resolve(u[c],i)}else{t[i][c]=e.util.resolve(c+".js",i)}if(n.hasOwnProperty(c)){n[c].push(i)}else{n[c]=[i]}}r=false;s(true,a)})};e.repo.hasInit=function(e){return t.hasOwnProperty(e)};e.repo.loadFrom=function(n,r,i){var i=e.util.forceFunction(i,function(){});var r=e.util.forceArray(r);var n=e.util.resolve(n);e.repo.init(n,function(s,o){if(!s){return i(false,"Repo init failed: "+o)}if(!e.repo.provides(n,r)){return i(false,"Modules are not provided by repo. ")}r=e.util.filter(r,function(t){return!e.modules.available(t,false)});var u=e.util.map(r,function(e){return t[n][e]});e.repo.__currentFile=undefined;e.repo.__currentLoad=u;e.repo.__currentRepo=n;e.util.loadExternalJS(u,function(t){delete e.repo.__currentFile;delete e.repo.__currentLoad;delete e.repo.__currentRepo;if(t){i(true)}else{i(false,"Failed to load one or more Modules: Timeout")}},undefined,function(t){e.repo.__currentFile=t})})};e.repo.loadAllFrom=function(n,r){var r=e.util.forceFunction(r,function(){});var n=e.util.resolve(n);e.repo.init(n,function(i,s){if(!i){return r(false,"Repo init failed: "+s)}e.repo.loadFrom(n,e.util.keys(t[n]),r)})};e.repo.provides=function(r,i){var s=e.util.forceArray(r);var o=e.util.forceArray(i);if(typeof i=="undefined"){o=s;s=e.util.keys(t)}return e.util.lAnd(e.util.map(o,function(t){return e.util.lOr(e.util.map(s,function(r){var r=e.util.resolve(r);return e.util.indexOf(n[t],r)!=-1}))}))};e.repo.provide=function(t,r,s,o){if(typeof r=="function"){o=s;s=r;r=[]}var s=e.util.forceFunction(s,function(){});var t=e.util.forceArray(t);var u=0;var r=e.util.forceArray(r);var o=e.util.forceBool(o,true);var a=function(){if(u>=t.length){return s(true)}var r=t[u];var f=n[r][0];e.repo.loadFrom(f,r,function(n,f){if(!n){s(false,f)}else{if(o){var l=i[r].info.dependencies;if(!e.repo.provides(l)){return s(false,"Dependencies for module '"+r+"' are not provided by any repo. ")}t=e.util.union(t,l)}u++;a()}})};e.repo.init(r,function(n,r){if(!e.repo.provides(t)){return s(false,"Modules are not provided by any repo. ")}if(n){a()}else{s(false,r)}})};e.ifaces.push(function(t,n){this.modules={};this.Event=e.util.EventHandler(this);this.Event.handle=function(e,n){t.Event.trigger("event.handlable",[e,n])};this.Event.bind=function(n,r,i){if(r instanceof e.modules.loadedModule){t.Event.on(n,function(){if(r.isActive()){var e=[t];for(var n=0;n<arguments.length;n++){e.push(arguments[n])}r[i].apply(r,e)}})}else{e.console.error("Can't bind Event Handler for '"+n+"': module is not a loadedModuleInstance. ")}};var r={};var i=[];var s=[];var o=-1;var u={};var a=[];var f=[];var l=[];var c=false;var h=function(){c=true;o++;if(s.length>o){var e=s[o];var t=u[e];if(typeof t=="undefined"){t=[]}d(e,t,p)}else{p(function(){o--;c=false})}};var p=function(e){window.setTimeout(function(){f=f.filter(function(e){if(t.modules.loaded(e[0])){try{e[1].call(e[2],t.modules.loadedOK(e[0]),e[0])}catch(n){}return false}else{return true}});window.setTimeout(e,0)},0)};var d=function(n,s){var o=a.indexOf(n)!=-1;try{r[n]=new e.modules.loadedModule(n,s,t,function(e,r){if(!e){v(n,r)}else{i.push(n);t.Event.trigger("module.load",[n,s]);if(o){t.modules.activate(n)}}p(h)})}catch(u){v(n,String(u));p(h)}};var v=function(n,i){l.push(n);t.Event.trigger("module.fail",[n,i]);try{delete r[n]}catch(s){}e.console.error("Failed to load module '"+n+"': "+String(i))};var m=function(t){var n=[];if(e.util.isArray(t)){for(var r=0;r<t.length;r++){var i=e.util.forceArray(t[r]);if(typeof i[1]=="boolean"){i[2]=i[1];i[1]=[]}n.push(i)}}else{for(var s in t){n.push([s,t[s]])}}return n};this.modules.load=function(n,r,i){if(typeof n=="string"){if(e.util.isArray(r)){return t.modules.load([[n,r]],i)}else{return t.modules.load([n],r,i)}}r=e.util.defined(r);r=typeof r=="function"?{ready:r}:r;r=typeof r=="booelan"?{activate:r}:r;var o=e.util.forceFunction(r.ready,function(){});var f=e.util.forceFunction(r.load,function(){});var l=e.util.forceBool(r.activate,true);var p=[];var d=e.util.map(m(n),function(n){var r=n[0];var i=n[1];var s=n[2];p.push(r);if(typeof u[r]=="undefined"&&e.util.isArray(i)){u[r]=i}if(typeof s=="undefined"){s=l}if(s){a.push(r)}if(!e.modules.available(r)){v(r,"Module not available. (Did loading fail?)");return[]}if(!t.modules.inLoadProcess(r)){var o=e.modules.getDependencyList(r);if(!o){v(r,"Failed to resolve dependencies (Is a dependent module missing? )");return[]}else{return o}}else{if(s&&t.modules.loadedOK(r)&&!t.modules.isActive(r)){t.modules.activate(r)}return[]}});d=e.util.flatten(d);d=e.util.union(d);p=e.util.union(p);e.util.map(p,function(e){t.modules.once(e,f,t,false)});t.modules.once(p,o,t,false);s=e.util.union(s,d);if(!c){h()}};this.modules.once=function(n,r,i,s){f.push([n,r,typeof i=="undefined"?t:i]);var s=e.util.forceBool(s,true);if(!c&&s){h()}};this.modules.loaded=function(e){return t.modules.loadedOK(e)||t.modules.loadedFail(e)};this.modules.loadedOK=function(n){if(e.util.isArray(n)){return e.util.lAnd(e.util.map(n,function(e){return t.modules.loadedOK(e)}))}else{return r.hasOwnProperty(n)}};this.modules.loadedFail=function(n){if(e.util.isArray(n)){return e.util.lOr(e.util.map(n,function(e){return t.modules.loadedFail(e)}))}else{return e.util.indexOf(l,n)!=-1}};this.modules.inLoadProcess=function(n){if(e.util.isArray(n)){return e.util.lAnd(e.util.map(n,function(e){return t.modules.inLoadProcess(e)}))}else{return e.util.indexOf(s,n)!=-1}};this.modules.deactivate=function(n){if(!t.modules.isActive(n)){e.console.warn("Module '"+n+"' is already deactivated. ");return}i.push(n);r[n].onDeactivate(t);t.Event.trigger("module.deactivate",[r[n]]);t.Event.handle("deactivate",n)};this.modules.activate=function(n){if(t.modules.isActive(n)){return false}var s=function(){if(t.modules.isActive(n)){return}i=e.util.without(i,n);var s=e.modules.getDependencyList(n);for(var o=0;o<s.length-1;o++){t.modules.activate(s[o])}r[n].onActivate(t);t.Event.trigger("module.activate",[r[n]]);t.Event.handle("activate",n)};if(t.Setup.isEnabled()){s()}else{t.Event.once("instance.enable",s)}return true};this.modules.isActive=function(n){return e.util.indexOf(i,n)==-1&&t.modules.loadedOK(n)};this.modules.isInActive=function(n){return e.util.indexOf(i,n)!=-1&&t.modules.loadedOK(n)};this.modules.getIdentifiers=function(){var e=[];for(var t in r){if(r.hasOwnProperty(t)){e.push(t)}}return e};this.modules.getLoadedModule=function(t){if(!r.hasOwnProperty(t)){e.console.warn("Can't find JOBAD.modules.loadedModule instance of '"+t+"'");return}return r[t]};this.modules.iterate=function(e){var n=[];for(var i in r){if(r.hasOwnProperty(i)){if(t.modules.isActive(i)){var s=e(r[i]);if(!s){return n}else{n.push(s)}}}}return n};this.modules.iterateAnd=function(e){for(var n in r){if(r.hasOwnProperty(n)){if(t.modules.isActive(n)){var i=e(r[n]);if(!i){return false}}}}return true};var g=function(){var e=[];t.modules.iterate(function(n){var r=n.info().identifier;e.push(r);t.modules.deactivate(r);return true});t.Event.once("instance.enable",function(){for(var n=0;n<e.length;n++){var r=e[n];if(!t.modules.isActive(r)){t.modules.activate(r)}}t.Event.once("instance.disable",g)})};this.Event.once("instance.disable",g);this.modules=e.util.bindEverything(this.modules,this)});e.modules={};e.modules.extensions={};e.modules.ifaces=[];e.modules.cleanProperties=["init","activate","deactivate","globalinit","info"];var i={};var s={};var o={};e.modules.register=function(t){var n=e.modules.createProperModuleObject(t);if(!n){return false}var r=n.info.identifier;if(e.modules.available(r)){return false}else{if(e.repo.__currentFile){o[r]=[e.repo.__currentFile,e.repo.__currentLoad,e.repo.__currentRepo]}else{o[r]=[e.util.getCurrentOrigin()]}if(n.info.url){n.info.url=e.modules.resolveModuleResourceURL(r,n.info.url)}n.info.externals.js=e.util.map(n.info.externals.js,function(t){return e.modules.resolveModuleResourceURL(r,t)});n.info.externals.css=e.util.map(n.info.externals.css,function(t){return e.modules.resolveModuleResourceURL(r,t)});i[r]=n;s[r]={};return true}};e.modules.createProperModuleObject=function(t){if(!e.util.isObject(t)){return false}var n={globalinit:function(){},init:function(){},activate:function(){},deactivate:function(){}};for(var r in n){if(n.hasOwnProperty(r)&&t.hasOwnProperty(r)){var i=t[r];if(typeof i!="function"){return false}n[r]=t[r]}}if(t.hasOwnProperty("info")){var s=t.info;n.info={version:"",dependencies:[]};if(s.hasOwnProperty("version")){if(typeof s["version"]!="string"){return false}n.info["version"]=s["version"]}if(s.hasOwnProperty("externals")){if(e.util.isArray(s["externals"])){n.info.externals={js:s["externals"],css:[]}}else if(e.util.isObject(s["externals"])){n.info.externals={};if(s["externals"].hasOwnProperty("css")){if(!e.util.isArray(s["externals"].css)){return false}n.info.externals.css=s["externals"].css}if(s["externals"].hasOwnProperty("js")){if(!e.util.isArray(s["externals"].js)){return false}n.info.externals.js=s["externals"].js}}else{return false}}else{n.info.externals={js:[],css:[]}}if(s.hasOwnProperty("async")){n.info.async=e.util.forceBool(s.async)}else{n.info.async=false}if(!n.info.async){var o=n.globalinit;n.globalinit=function(e){o();window.setTimeout(e,0)}}if(s.hasOwnProperty("hasCleanNamespace")){if(s["hasCleanNamespace"]==false){n.info.hasCleanNamespace=false}else{n.info.hasCleanNamespace=true}}else{n.info.hasCleanNamespace=true}if(s.hasOwnProperty("dependencies")){var u=s["dependencies"];if(!e.util.isArray(u)){return false}n.info["dependencies"]=u}if(s.hasOwnProperty("url")){if(!e.util.isUrl(s.url)){return false}n.info["url"]=s.url}else{s.url=false}try{e.util.map(["identifier","title","author","description"],function(e){if(s.hasOwnProperty(e)){var t=s[e];if(typeof t!="string"){throw""}n.info[e]=t}else{throw""}})}catch(a){return false}n.namespace={};for(var r in t){if(t.hasOwnProperty(r)&&e.util.indexOf(e.modules.cleanProperties,r)==-1){if(n.info.hasCleanNamespace){e.console.warn("Warning: Module '"+n.info.identifier+"' says its namespace is clean, but property '"+r+"' found. Check ModuleObject.info.hasCleanNamespace. ")}else{n.namespace[r]=t[r]}}}for(var r in e.modules.extensions){var f=e.modules.extensions[r];var l=t.hasOwnProperty(r);var c=t[r];if(f.required&&!l){e.error("Error: Cannot load module '"+n.info.identifier+"'. Missing required core extension '"+r+"'. ")}if(l){if(!f.validate(c)){e.error("Error: Cannot load module '"+n.info.identifier+"'. Core Extension '"+r+"' failed to validate. ")}}n[r]=f.init(l,c,t,n);if(typeof f["onRegister"]=="function"){f.onRegister(n[r],n,t)}}for(var h=0;h<e.modules.ifaces.length;h++){var f=e.modules.ifaces[h];n=f[0].call(this,n,t)}return n}else{return false}};e.modules.available=function(t,n){var n=typeof n=="boolean"?n:false;var r=i.hasOwnProperty(t);if(n&&r){var s=i[t].info.dependencies;for(var o=0;o<s.length;o++){if(!e.modules.available(s[o],true)){return false}}return true}else{return r}};e.modules.getOrigin=function(t,n){var r=o[t];if(e.util.equalsIgnoreCase(n,"file")){return r[0]}else if(e.util.equalsIgnoreCase(n,"group")){return r[1]||[r[0]]}else{return r[2]}};e.modules.resolveModuleResourceURL=function(t,n){var r=e.modules.getOrigin(t,"file");r=r.substring(0,r.lastIndexOf("/"));return e.util.resolve(n,r)};e.modules.getDependencyList=function(t){if(!e.modules.available(t,true)){return false}var n=[t];var r=i[t].info.dependencies;for(var s=r.length-1;s>=0;s--){n=e.util.union(n,e.modules.getDependencyList(r[s]))}n.reverse();return n};e.modules.globalStore={get:function(t,n){if(e.util.isObject(n)&&!e.util.isArray(n)){var n=e.util.keys(n)}if(e.util.isArray(n)){var r={};e.util.map(n,function(n){r[n]=e.modules.globalStore.get(t,n)});return r}return s[t][n+"_"]},set:function(t,n,r){if(e.util.isObject(n)&&!e.util.isArray(n)){var n=e.util.keys(n)}if(e.util.isArray(n)){return e.util.map(n,function(r){return e.modules.globalStore.set(t,r,n[r])})}s[t][n+"_"]=r;return n},"delete":function(e,t){delete s[e][t+"_"]},keys:function(e){var t=[];for(var n in s[e]){if(s[e].hasOwnProperty(n)&&n[n.length-1]=="_"){t.push(n.substr(0,n.length-1))}}return t},getFor:function(t){return{get:function(n){return e.modules.globalStore.get(t,n)},set:function(n,r){return e.modules.globalStore.set(t,n,r)},"delete":function(n){return e.modules.globalStore["delete"](t,n)},keys:function(){e.modules.globalStore.keys(t)}}}};e.modules.loadedModule=function(t,n,r,o){var u=this;var o=e.util.forceFunction(o,function(){});if(!e.modules.available(t)){e.error("Module is not available and cant be loaded. ")}if(!e.util.isArray(n)){var n=[]}this.globalStore=e.modules.globalStore.getFor(t);var a={};this.localStore={get:function(t){if(e.util.isObject(t)&&!e.util.isArray(t)){var t=e.util.keys(t)}if(e.util.isArray(t)){var n={};e.util.map(t,function(e){n[e]=a[e]});return n}return a[t]},set:function(t,n){if(e.util.isObject(t)&&!e.util.isArray(t)){var t=e.util.keys(t)}if(e.util.isArray(t)){return e.util.map(t,function(e){a[e]=t[e]})}a[t]=n;return t},"delete":function(e){delete a[t]},keys:function(){var e=[];for(var t in a){if(a.hasOwnProperty(t)){e.push(t)}}return e}};var f=i[t];this.info=function(){return f.info};this.getJOBAD=function(){return r};this.getOrigin=function(n){return e.modules.getOrigin(t,n)};this.isActive=function(){return r.modules.isActive(this.info().identifier)};var l=n.slice(0);l.unshift(r);var c={};c.info=f.info;c.globalStore=this.globalStore;if(e.config.cleanModuleNamespace){if(!f.info.hasCleanNamespace){e.console.warn("Warning: Module '"+t+"' may have unclean namespace, but JOBAD.config.cleanModuleNamespace is true. ")}}else{var h=e.util.clone(f.namespace);for(var p in h){if(!e.modules.cleanProperties.hasOwnProperty(p)&&h.hasOwnProperty(p)){this[p]=h[p];c[p]=h[p]}}}for(var p in e.modules.extensions){var d=e.modules.extensions[p];var v=f[p];if(typeof d["onLoad"]=="function"){d.onLoad.call(this,v,f,this)}if(e.util.isArray(d["globalProperties"])){for(var m=0;m<d["globalProperties"].length;m++){var g=d["globalProperties"][m];c[g]=this[g]}}}for(var m=0;m<e.modules.ifaces.length;m++){var d=e.modules.ifaces[m];d[1].call(this,f)}this.onActivate=f.activate;this.onDeactivate=f.deactivate;this.activate=function(){return r.modules.activate(this.info().identifier)};this.deactivate=function(){return r.modules.deactivate(this.info().identifier)};this.setHandler=function(e,t){this.getJOBAD().Event.bind(e,u,t)};var y=function(){f.init.apply(u,l);o.call(u,true)};if(!s[t]["init"]){s[t]["init"]=true;for(var p in e.modules.extensions){var d=e.modules.extensions[p];var v=f[p];if(typeof d["onFirstLoad"]=="function"){d.onFirstLoad(u.globalStore)}}e.util.loadExternalCSS(f.info.externals.css,function(t,n){if(!n){o(false,"Can't load external CSS dependencies: Timeout. ")}else{e.util.loadExternalJS(f.info.externals.js,function(e,t){if(!t){o(false,"Can't load external JavaScript dependencies: Timeout. ")}else{f.globalinit.call(c,y)}})}})}else{y()}};var u=["on","off","once","trigger","bind","handle"];var a=function(e,t,n){e.Event.trigger("event.before."+t,[t,n])};var f=function(e,t,n){e.Event.trigger("event.after."+t,[t,n]);e.Event.handle(t,n)};e.ifaces.push(function(t,n){var r=false;this.Setup=function(){if(r){return t.Setup.disable()}else{return t.Setup.enable()}};this.Setup.isEnabled=function(){return r};this.Setup.enabled=function(n){var n=e.util.forceFunction(n).bind(t);if(r){n()}else{t.Event.once("instance.enable",n)}};this.Setup.disabled=function(n){var n=e.util.forceFunction(n).bind(t);if(!r){n()}else{t.Event.once("instance.disable",n)}};this.Setup.deferUntilEnabled=function(n){e.console.warn("deprecated: .Setup.deferUntilEnabled, use .Event.once('instance.enable', callback) instead. ");t.Event.once("instance.enable",n)};this.Setup.deferUntilDisabled=function(n){e.console.warn("deprecated: .Setup.deferUntilDisabled, use .Event.once('instance.disable', callback) instead. ");t.Event.once("instance.disable",n)};this.Setup.enable=function(){if(r){return false}var n=t.element;t.Event.trigger("instance.beforeEnable",[]);for(var i in t.Event){if(e.util.contains(u,i)){continue}try{e.events[i].Setup.enable.call(t,n)}catch(s){e.console.error("Failed to enable Event '"+i+"': "+s.message);e.console.error(s)}}r=true;var o=t.Event.trigger("instance.enable",[]);return true};this.Setup.disable=function(){if(!r){return false}var n=t.element;t.Event.trigger("instance.beforeDisable",[]);for(var i in e.events){if(e.util.contains(u,i)){continue}if(e.events.hasOwnProperty(i)&&!e.isEventDisabled(i)){try{e.events[i].Setup.disable.call(t,n)}catch(s){e.console.error("Failed to disable Event '"+i+"': "+s.message);e.console.error(s)}}}r=false;t.Event.trigger("instance.disable",[]);return true};for(var i in e.events){if(e.events.hasOwnProperty(i)&&!e.isEventDisabled(i)){t.Event[i]=e.util.bindEverything(e.events[i].namespace,t);(function(){var e=i;var n=t.Event[e].getResult;t.Event[e].getResult=function(){var r=t.Event.trigger(e,arguments);var i=n.apply(this,arguments);return i}})();if(typeof e.events[i].Setup.init=="function"){e.events[i].Setup.init.call(t,t)}else if(typeof e.events[i].Setup.init=="object"){for(var s in e.events[i].Setup.init){if(e.events[i].Setup.init.hasOwnProperty(s)){if(t.hasOwnProperty(s)){e.console.warn("Setup: Event '"+i+"' tried to override '"+s+"'")}else{t[s]=e.util.bindEverything(e.events[i].Setup.init[s],t)}}}}}}});e.modules.ifaces.push([function(t,n){for(var r in e.events){if(n.hasOwnProperty(r)){t[r]=n[r]}}return t},function(t){for(var n in e.events){if(t.hasOwnProperty(n)){this[n]=t[n]}else{this[n]=e.events[n]["default"]}}}]);e.isEventDisabled=function(t){return e.util.indexOf(e.config.disabledEvents,t)!=-1};e.events={};e.config.disabledEvents=[];e.config.cleanModuleNamespace=false;var l=[0,0];e.refs.$(document).on("mousemove.JOBADListener",function(t){l=[t.pageX-e.refs.$(window).scrollLeft(),t.pageY-e.refs.$(window).scrollTop()]});e.UI={};e.UI.highlight=function(t,n){var t=e.refs.$(t);var r;if(typeof t.data("JOBAD.UI.highlight.orgColor")=="string"){r=t.data("JOBAD.UI.highlight.orgColor")}else{r=t.css("backgroundColor")}t.stop().data("JOBAD.UI.highlight.orgColor",r).animate({backgroundColor:typeof n=="string"?n:"#FFFF9C"},1e3)};e.UI.unhighlight=function(t){var t=e.refs.$(t);t.stop().animate({backgroundColor:t.data("JOBAD.UI.highlight.orgColor"),finish:function(){t.removeData("JOBAD.UI.highlight.orgColor")}},1e3)};e.UI.sortTableBy=function(t,n,r){var t=e.refs.$(t);var i=t.closest("table");var s=e.refs.$("tbody > tr",i);var o=t.parents().children().index(t);if(!i.data("JOBAD.UI.TableSort.OrgOrder")){i.data("JOBAD.UI.TableSort.OrgOrder",s)}if(typeof n=="undefined"){n="rotate"}if(typeof n=="string"){if(n=="rotate"){var u=t.data("JOBAD.UI.TableSort.rotationIndex");if(typeof u!="number"){u=0}u=(u+1)%3;n=["reset","ascending","descending"][u];t.data("JOBAD.UI.TableSort.rotationIndex",u);r.call(t,u)}if(n=="ascending"){var n=function(e,t){return e>t?1:0}}else if(n=="descending"){var n=function(e,t){return e<t?1:0}}else if(n=="reset"){i.data("JOBAD.UI.TableSort.OrgOrder").each(function(){var t=e.refs.$(this);t.detach().appendTo(i)});return t}}s.sort(function(t,r){var i=e.refs.$("td",t).eq(o).text();var s=e.refs.$("td",r).eq(o).text();return n(i,s)}).each(function(t){var n=e.refs.$(this);n.detach().appendTo(i)});return t};e.refs.$.fn.BS=function(){e.refs.$(this).addClass(e.config.BootstrapScope);return this};e.UI.BS=function(t){return e.refs.$(t).BS()};var c=e.refs.$([]);e.UI.BSStyle=function(t){c=c.filter(function(){var t=e.refs.$(this);if(t.children().length==0){t.remove();return false}return true});var n=e.refs.$(".modal-backdrop").wrap(e.refs.$("<div>").BS().addClass("hacked"));c=c.add(n.parent())};e.UI.hover={};e.UI.hover.config={offsetX:10,offsetY:10,hoverDelay:1e3};var h=false;var p=undefined;e.UI.hover.enable=function(t,n){h=true;p=e.refs.$("<div class='JOBAD'>").addClass(n).html(t);p.appendTo(e.refs.$("body"));e.refs.$(document).on("mousemove.JOBAD.UI.hover",function(){e.UI.hover.refresh()});e.UI.hover.refresh();return true};e.UI.hover.disable=function(){if(!h){return false}h=false;e.refs.$(document).off("mousemove.JOBAD.UI.hover");p.remove()};e.UI.hover.refresh=function(){if(h){p.css("top",Math.min(l[1]+e.UI.hover.config.offsetY,window.innerHeight-p.outerHeight(true))).css("left",Math.min(l[0]+e.UI.hover.config.offsetX,window.innerWidth-p.outerWidth(true)))}};e.UI.ContextMenu={};e.UI.ContextMenu.config={margin:20,width:250,radiusConst:50,radius:20};var d=e.refs.$([]);e.UI.ContextMenu.enable=function(t,n,r){var t=e.refs.$(t);var r=e.util.defined(r);if(typeof n!="function"){e.console.warn("JOBAD.UI.ContextMenu.enable: demandFunction is not a function. ");return t}var i=e.util.forceFunction(r.type);var s=e.util.forceFunction(r.callback,true);var o=e.util.forceFunction(r.open,true);var u=e.util.forceFunction(r.show,true);var a=e.util.forceFunction(r.empty,true);var f=e.util.forceFunction(r.close,true);var c=e.refs.$(r.parents);var h=e.util.forceBool(r.block,false);var p=e.util.forceBool(r.stopPropagnate,false);t.on("contextmenu.JOBAD.UI.ContextMenu",function(v){if(v.ctrlKey){return true}if(e.util.isHidden(v.target)){return false}var m=r.element instanceof e.refs.$?r.element:e.refs.$(v.target);var g=m;var y=false;while(true){y=n(m,g);y=e.UI.ContextMenu.generateMenuList(y);if(y.length>0||t.is(this)||p){break}m=m.parent()}e.UI.ContextMenu.clear(r.parents);if(y.length==0||!y){a(g);return!h}o(t);var b=i(m,g);if(typeof b=="undefined"){b=0}var w=e.util.ifType(r.callBackTarget,e.refs.$,m);var E=e.util.ifType(r.callBackOrg,e.refs.$,g);var S=e.refs.$("<div>").addClass("JOBAD JOBAD_Contextmenu").appendTo(e.refs.$("body")).data("JOBAD.UI.ContextMenu.renderData",{items:y,targetElement:w,orgElement:E,coords:l.slice(0),callback:s});var x=function(e){S.remove();f(t)};if(b==0||e.util.equalsIgnoreCase(b,"standard")){S.data("JOBAD.UI.ContextMenu.menuType","standard").append(e.UI.ContextMenu.buildContextMenuList(y,w,E,s).show().dropdown()).on("contextmenu",function(e){return e.ctrlKey})}else if(b==1||e.util.equalsIgnoreCase(b,"radial")){var T=e.refs.$("<span>");e.refs.$(document).trigger("JOBAD.UI.ContextMenu.unbind");S.data("JOBAD.UI.ContextMenu.menuType","radial").append(e.UI.ContextMenu.buildPieMenuList(y,w,E,s,l[0],l[1]).find("div").click(function(){T.trigger("JOBAD.UI.ContextMenu.unbind");e.refs.$(this).trigger("contextmenu.JOBAD.UI.ContextMenu");return false}).end());e.UI.ContextMenu.enable(S,function(t){return e.refs.$(t).closest("div").data("JOBAD.UI.ContextMenu.subMenuData")},{type:0,parents:c.add(S),callBackTarget:m,callBackOrg:g,unbindListener:T,open:function(){T.trigger("JOBAD.UI.ContextMenu.unbind")},empty:function(){T.trigger("JOBAD.UI.ContextMenu.unbind")},callback:x,block:true,stopPropagnate:p})}else{e.console.warn("JOBAD.UI.ContextMenu: Can't show Context Menu: Unkown Menu Type '"+b+"'. ");return true}S.BS().css({width:e.UI.ContextMenu.config.width,position:"fixed"}).css({left:Math.min(l[0],window.innerWidth-S.outerWidth(true)-e.UI.ContextMenu.config.margin),top:Math.min(l[1],window.innerHeight-S.outerHeight(true)-e.UI.ContextMenu.config.margin)}).on("mousedown",function(e){e.stopPropagation()});u(S,y);e.refs.$(document).add(r.unbindListener).add(S).on("JOBAD.UI.ContextMenu.hide",function(){S.hide()}).on("JOBAD.UI.ContextMenu.unbind",function(t){x();e.refs.$(document).unbind("mousedown.UI.ContextMenu.Unbind JOBAD.UI.ContextMenu.unbind JOBAD.UI.ContextMenu.hide");t.stopPropagation();d=d.not(S)});e.refs.$(document).one("mousedown.UI.ContextMenu.Unbind",function(){e.UI.ContextMenu.clear()});d=d.add(S);return false});return t};e.UI.ContextMenu.disable=function(e){e.off("contextmenu.JOBAD.UI.ContextMenu");return e};e.UI.ContextMenu.clear=function(e){var t=d.filter(e);var n=d.not(e).trigger("JOBAD.UI.ContextMenu.unbind").remove();d=t};e.UI.ContextMenu.buildContextMenuList=function(t,n,r,i){var s=e.util.forceFunction(i,function(){});var o=e.refs.$("<ul class='JOBAD JOBAD_Contextmenu'>").addClass("dropdown-menu");o.attr("role","menu").attr("aria-labelledby","dropdownMenu");for(var u=0;u<t.length;u++){var a=t[u];var f=e.refs.$("<li>").appendTo(o);var l=e.refs.$("<a href='#' tabindex='-1'>").appendTo(f).text(a[0]).click(function(e){return false});if(a[2]!="none"){l.prepend(e.refs.$("<span class='JOBAD JOBAD_InlineIcon'>").css({"background-image":"url('"+e.resources.getIconResource(a[2])+"')"}))}if(typeof a[3]=="string"){f.attr("id",a[3])}(function(){if(typeof a[1]=="function"){var t=a[1];l.on("click",function(i){e.refs.$(document).trigger("JOBAD.UI.ContextMenu.hide");t(n,r);s(n,r);e.refs.$(document).trigger("JOBAD.UI.ContextMenu.unbind")})}else if(a[1]===false){l.parent().addClass("disabled")}else{f.append(e.UI.ContextMenu.buildContextMenuList(a[1],n,r,s)).addClass("dropdown-submenu")}})()}return o};e.UI.ContextMenu.buildPieMenuList=function(t,n,r,i,s,o){var u=e.util.forceFunction(i,function(){});var a=e.UI.ContextMenu.config.radius;var f=t.length;var l=f*(a+e.UI.ContextMenu.config.radiusConst)/(2*Math.PI);var c=l+a+e.UI.ContextMenu.config.margin;var h=s;if(h<c){h=c}else if(h>window.innerWidth-c){h=window.innerWidth-c}var p=o;if(p<c){p=c}else if(p>window.innerHeight-c){var p=window.innerHeight-c}var d=e.refs.$("<div class='JOBAD JOBAD_Contextmenu JOBAD_ContextMenu_Radial'>");for(var v=0;v<t.length;v++){var m=t[v];var g=2*(f-v)*Math.PI/t.length;var y=l*Math.sin(g)-a+h;var b=l*Math.cos(g)-a+p;var w=e.refs.$("<div>").appendTo(d).css({top:p-a,left:h-a,height:2*a,width:2*a}).addClass("JOBAD JOBAD_Contextmenu JOBAD_ContextMenu_Radial JOBAD_ContextMenu_RadialItem");w.animate({deg:360,top:b,left:y},{duration:400,step:function(e,t){if(t.prop=="deg"){d.find(".JOBAD_ContextMenu_RadialItem").css({transform:"rotate("+e+"deg)"})}}});w.append(e.refs.$("<img src='"+e.resources.getIconResource(m[2],{none:"warning"})+"'>").width(2*a).height(2*a));if(typeof m[3]=="string"){w.attr("id",m[3])}(function(){var t=e.refs.$("<span>").text(m[0]);if(typeof m[1]=="function"){var i=m[1];w.click(function(t){e.UI.hover.disable();e.refs.$(document).trigger("JOBAD.UI.ContextMenu.hide");i(n,r);u(n,r);e.refs.$(document).trigger("JOBAD.UI.ContextMenu.unbind")})}else if(m[1]===false){w.addClass("JOBAD_ContextMenu_Radial_Disabled")}else{w.data("JOBAD.UI.ContextMenu.subMenuData",m[1])}w.hover(function(){e.UI.hover.enable(t,"JOBAD_Hover")},function(){e.UI.hover.disable()})})()}return d};e.UI.ContextMenu.generateMenuList=function(t){var n="none";if(typeof t=="undefined"){return[]}if(t===false){return[]}var r=function(t){if(typeof t=="function"||t===false){return t}else{return e.UI.ContextMenu.generateMenuList(t)}};var i=function(t,r){var i={icon:n,id:false};var t=e.util.defined(t);var r=e.util.defined(r);if(typeof t=="string"){i["icon"]=t}else if(e.util.isObject(t)){if(typeof t.icon=="string"){i["icon"]=t.icon}if(typeof t["id"]=="string"){i["id"]=t["id"]}return i}if(typeof r=="string"){i["id"]=r}else if(e.util.isObject(r)){if(typeof r.icon=="string"){i["icon"]=r.icon}if(typeof r["id"]=="string"){i["id"]=r["id"]}}return i};var s=[];if(e.util.isArray(t)){var o={};for(var u=0;u<t.length;u++){var a=t[u][0];var f=t[u].slice(1);o[a]=f}return e.UI.ContextMenu.generateMenuList(o)}else{for(var a in t){if(t.hasOwnProperty(a)){var f=t[a];if(e.util.isArray(f)){if(f.length==0){s.push([a,false,n,false])}else if(f.length==1){s.push([a,r(f[0]),n,false])}else if(f.length==2||f.length==3){var l=i(f[1],f[2]);s.push([a,r(f[0]),l["icon"],l["id"]])}else{console.warn("JOBAD.UI.ContextMenu.generateMenuList: menu too long. ")}}else{s.push([a,r(f),n,false])}}}}return s};e.UI.ContextMenu.fullWrap=function(t,n){var t=e.UI.ContextMenu.generateMenuList(t);var r=[];for(var i=0;i<t.length;i++){if(typeof t[i][1]=="function"){(function(){var e=t[i][1];r.push([t[i][0],function(){return n(e,arguments)},t[i][2]])})()}else{r.push([t[i][0],e.UI.ContextMenu.fullWrap(t[i][1]),t[i][2]])}}return r};e.UI.ContextMenu.updateMenu=function(t){var t=typeof t=="function"?t:function(e){return e};var n=$("div.JOBAD_Contextmenu").eq(0);var r=n.data("JOBAD.UI.ContextMenu.renderData");if(typeof r=="undefined"){return false}if(n.data("JOBAD.UI.ContextMenu.menuType")=="standard"){r["items"]=e.UI.ContextMenu.generateMenuList(t(r["items"]));n.data("JOBAD.UI.ContextMenu.renderData",r);var i=e.UI.ContextMenu.buildContextMenuList(r["items"],r["targetElement"],r["orgElement"],r["callback"]);n.empty().append(i.show().dropdown())}else{return false}return n};e.UI.Sidebar={};e.UI.Sidebar.config={width:50,iconDistance:15};e.UI.Sidebar.wrap=function(t,n){var r=e.refs.$(t);if(r.length>1){var i=arguments.callee;return r.each(function(e,t){i(t,n)})}var s=n==="left"?"left":"right";var o="JOBAD_Sidebar_"+s;var u=e.refs.$("<div>").css({overflow:"hidden"});var a=e.refs.$("<div class='JOBAD "+o+" JOBAD_Sidebar_Container'>").css({width:e.UI.Sidebar.config.width});var f=e.refs.$("<div class='JOBAD "+o+" JOBAD_Sidebar_Wrapper'>");r.wrap(u);u=r.parent();u.wrap(f);f=u.parent();f.prepend(a);e.refs.$(window).on("resize.JOBAD.UI.Sidebar",function(){var t=a.find("*").filter(function(){var t=e.refs.$(this);return t.data("JOBAD.UI.Sidebar.isElement")===true});var n=[];t.each(function(t,n){var n=e.refs.$(n).detach().appendTo(a).addClass("JOBAD_Sidebar_Single");var r=e.util.closest(n.data("JOBAD.UI.Sidebar.orgElement"),function(t){return!e.util.isHidden(t)});var i=r.offset().top-a.offset().top;n.data("JOBAD.UI.Sidebar.hidden",false);if(n.data("JOBAD.UI.Sidebar.orgElement").is(":hidden")&&n.data("JOBAD.UI.Sidebar.hide")){n.data("JOBAD.UI.Sidebar.hidden",true)}else{n.data("JOBAD.UI.Sidebar.hidden",false)}n.css("top",i).css(s,0)});t=e.refs.$(t.sort(function(t,n){t=e.refs.$(t);n=e.refs.$(n);if(parseInt(t.css("top"))<parseInt(n.css("top"))){return-1}else if(parseInt(t.css("top"))>parseInt(n.css("top"))){return 1}else{return 0}}));var r=t.eq(0);var i=t.eq(1);var u=[[r]];for(var f=1;f<t.length;f++){var l=parseInt(r.css("top"));var c=parseInt(i.css("top"));if(c-(l+r.height())<e.UI.Sidebar.config.iconDistance){u[u.length-1].push(i);i=t.eq(f+1)}else{u.push([i]);r=i;i=t.eq(f+1)}}e.refs.$(t).detach();a.find("*").remove();for(var f=0;f<u.length;f++){(function(){var t=0;var n=-1;for(var r=0;r<u[f].length;r++){if(!u[f][r].data("JOBAD.UI.Sidebar.hidden")){t++;n=r}}if(t>1){var i=e.refs.$(u[f]);var l=parseInt(e.refs.$(i[0]).css("top"));var c=e.refs.$("<div class='JOBAD "+o+" JOBAD_Sidebar_Group'><img src='"+e.resources.getIconResource("open")+"' width='16' height='16'></div>").css("top",l).appendTo(a);c.on("contextmenu",function(e){return e.ctrlKey});var h=c.find("img");var p=false;c.click(function(){if(p){for(var t=0;t<i.length;t++){i[t].hide()}h.attr("src",e.resources.getIconResource("open"))}else{for(var t=0;t<i.length;t++){if(!i[t].data("JOBAD.UI.Sidebar.hidden")){i[t].show()}}h.attr("src",e.resources.getIconResource("close"))}p=!p});for(var r=0;r<i.length;r++){e.refs.$(i[r]).appendTo(c).hide().removeClass("JOBAD_Sidebar_Single").addClass("JOBAD_Sidebar_group_element").css("top",-16).css(s,20)}}else{if(n!=-1){var d=e.refs.$(u[f][n]);a.append(e.refs.$(u[f][n]).removeClass("JOBAD_Sidebar_group_element").show())}for(var r=0;r<u[f].length;r++){if(r!=n){a.append(e.refs.$(u[f][r]).removeClass("JOBAD_Sidebar_group_element"))}}}})()}});e.refs.$(window).on("resize",function(){e.UI.Sidebar.forceNotificationUpdate()});r.data("JOBAD.UI.Sidebar.active",true);r.data("JOBAD.UI.Sidebar.align",s);return r};e.UI.Sidebar.unwrap=function(t){var n=e.refs.$(t);if(n.length>1){var r=arguments.callee;return n.each(function(e,t){r(t)})}if(!n.data("JOBAD.UI.Sidebar.active")){return}n.unwrap().parent().find("div").first().remove();n.removeData("JOBAD.UI.Sidebar.active").removeData("JOBAD.UI.Sidebar.align");return n.unwrap()};e.UI.Sidebar.addNotification=function(t,n,r,i){var r=typeof r=="undefined"?{}:r;var s=e.refs.$(t);if(s.data("JOBAD.UI.Sidebar.active")!==true){s=e.UI.Sidebar.wrap(s,i)}var o="JOBAD_Sidebar_"+(s.data("JOBAD.UI.Sidebar.align")==="left"?"left":"right");var u=e.refs.$(n);var a=u.offset().top-s.offset().top;s=s.parent().parent().find("div").first();var f=e.refs.$("<div class='JOBAD "+o+" JOBAD_Sidebar_Notification'>").css({top:a}).appendTo(s).data("JOBAD.UI.Sidebar.orgElement",n).data("JOBAD.UI.Sidebar.isElement",true).data("JOBAD.UI.Sidebar.hide",r.hide===true);if(typeof r.menu!="undefined"){var l=e.UI.ContextMenu.fullWrap(r.menu,function(e,t){return e.apply(f,[n,r.menuThis])});e.UI.ContextMenu.enable(f,function(){return l})}if(r.hasOwnProperty("text")){f.text(r.text)}var c=false;var h="#C0C0C0";var p={info:"#00FFFF",error:"#FF0000",warning:"#FFFF00",none:"#FFFF00"};r["class"]=typeof r["class"]=="string"?r["class"]:"none";if(typeof r["class"]=="string"){var d=r["class"];if(e.resources.available("icon",d)){c=e.resources.getIconResource(d)}if(p.hasOwnProperty(d)){h=p[d]}}if(r.trace){f.hover(function(){e.UI.Folding.show(n);e.UI.highlight(n,h)},function(){e.UI.unhighlight(n)})}if(typeof r.click=="function"){f.click(r.click)}else{f.click(function(){f.trigger("contextmenu");return false})}if(typeof r.icon=="string"){c=e.resources.getIconResource(r.icon)}if(typeof c!=="string"){c=e.resources.getIconResource("none")}if(typeof c=="string"){f.html("<img src='"+c+"' width='16px' height='16px'>").hover(function(){e.UI.hover.enable(e.refs.$("<div>").text(r.text).html(),"JOBAD_Sidebar_Hover JOBAD_Sidebar "+(typeof r["class"]=="string"?" JOBAD_Notification_"+r["class"]:""))},function(){e.UI.hover.disable()})}return f};e.UI.Sidebar.forceNotificationUpdate=function(){e.refs.$(window).trigger("resize.JOBAD.UI.Sidebar")};e.UI.Sidebar.removeNotification=function(e){e.remove()};e.UI.Overlay={};e.UI.Overlay.draw=function(t){var t=e.refs.$(t);var n=true;e.UI.Overlay.undraw(t.find("div.ui-widget-overlay").parent());var r=t.offset();var i=e.refs.$("<div>").css({position:"absolute",top:r.top,left:r.left,width:e.refs.$(t).outerWidth(),height:e.refs.$(t).outerHeight()}).addClass("ui-widget-overlay ui-front").appendTo(t);e.util.markHidden(i);t.one("JOBAD.UI.Overlay.undraw",function(){i.remove();n=false});e.refs.$(window).one("resize.JOBAD.UI.Overlay",function(){if(n){e.UI.Overlay.draw(t)}});return i};e.UI.Overlay.undraw=function(t){return e.refs.$(t).trigger("JOBAD.UI.Overlay.undraw")};e.UI.Overlay.redraw=function(){e.refs.$(window).trigger("resize.JOBAD.UI.Overlay")};e.UI.Folding={};e.UI.Folding.config={placeHolderHeight:50,placeHolderContent:"<p>Click to unfold me. </p>"};e.UI.Folding.enable=function(t,n){var r=e.refs.$(t).each(function(t,r){var r=e.refs.$(r);if(r.data("JOBAD.UI.Folding.enabled")){e.console.log("Can't enable folding on element: Folding already enabled. ");return}var i=e.util.clone(e.util.defined(n));var s=false;if(typeof i=="undefined"){i={}}i.autoFold=typeof i.autoFold=="boolean"?i.autoFold:false;i.autoRender=e.util.forceBool(i.autoRender,true);i.enable=typeof i.enable=="function"?i.enable:function(){};i.disable=typeof i.disable=="function"?i.disable:function(){};i.fold=typeof i.fold=="function"?i.fold:function(){};i.unfold=typeof i.unfold=="function"?i.unfold:function(){};i.stateChange=typeof i.stateChange=="function"?i.stateChange:function(){};i.update=typeof i.update=="function"?i.update:function(){};i.align=i.align=="right"?"right":"left";i.height=typeof i.height=="number"?i.height:e.UI.Folding.config.placeHolderHeight;if(typeof i.preview=="undefined"){i.preview=function(){return e.UI.Folding.config.placeHolderContent}}else{if(typeof i.preview!=="function"){(function(){var e=i.preview;i.preview=function(){return e}})()}}i.livePreview=typeof i.livePreview=="boolean"?i.livePreview:false;var o="JOBAD_Folding_"+i.align;var u=e.refs.$("<div class='JOBAD "+o+" JOBAD_Folding_Wrapper'>");var a=e.refs.$("<div class='JOBAD "+o+" JOBAD_Folding_Spacing'></div>").insertAfter(r);r.wrap(u);u=r.parent();var f=e.refs.$("<div class='JOBAD "+o+" JOBAD_Folding_PlaceHolder'>").prependTo(u).height(e.UI.Folding.config.placeHolderHeight).hide().click(function(){e.UI.Folding.unfold(r)});var l=e.refs.$("<div class='JOBAD "+o+" JOBAD_Folding_Container'>").prependTo(u).on("contextmenu",function(e){return e.ctrlKey});u.data("JOBAD.UI.Folding.state",e.util.forceBool(r.data("JOBAD.UI.Folding.state"),i.autoFold)).data("JOBAD.UI.Folding.update",function(){e.UI.Folding.update(r)}).on("JOBAD.UI.Folding.fold",function(t){t.stopPropagation();if(u.data("JOBAD.UI.Folding.state")){return}u.data("JOBAD.UI.Folding.state",true);i.fold(r);i.stateChange(r,true);e.UI.Folding.update(r)}).on("JOBAD.UI.Folding.unfold",function(t){t.stopPropagation();if(!u.data("JOBAD.UI.Folding.state")){return}u.data("JOBAD.UI.Folding.state",false);i.unfold(r);i.stateChange(r,false);e.UI.Folding.update(r)}).on("JOBAD.UI.Folding.update",i.livePreview?function(t){t.stopPropagation();r.unwrap();e.util.markHidden(r);l.css("height","");if(u.data("JOBAD.UI.Folding.state")){r.wrap(e.refs.$("<div style='overflow: hidden; '>").css("height",i.height));l.removeClass("JOBAD_Folding_unfolded").addClass("JOBAD_Folding_folded")}else{r.wrap("<div style='overflow: hidden; '>");e.util.markDefault(r);l.removeClass("JOBAD_Folding_folded").addClass("JOBAD_Folding_unfolded")}l.height(u.height());i.update()}:function(t){r.parent().show().end().show();e.util.markHidden(r);l.css("height","");if(u.data("JOBAD.UI.Folding.state")){r.parent().hide().end().hide();f.height(i.height).show();e.util.markHidden(f);f.empty().append(i.preview(r));l.removeClass("JOBAD_Folding_unfolded").addClass("JOBAD_Folding_folded")}else{f.hide();l.removeClass("JOBAD_Folding_folded").addClass("JOBAD_Folding_unfolded");e.util.markDefault(r)}l.height(u.height());i.update()});l.add(a).click(function(t){if(u.data("JOBAD.UI.Folding.state")){e.UI.Folding.unfold(r)}else{e.UI.Folding.fold(r)}});r.wrap("<div style='overflow: hidden; '>").data("JOBAD.UI.Folding.wrappers",l.add(f).add(a)).data("JOBAD.UI.Folding.enabled",true).data("JOBAD.UI.Folding.callback",i.disable).data("JOBAD.UI.Folding.onStateChange",i.update).data("JOBAD.UI.Folding.config",i);r.click(function(t){e.UI.Folding.unfold();t.stopPropagation()});i.enable(r)});e.UI.Folding.update(t);return r};e.UI.Folding.updating=false;e.UI.Folding.update=function(t){if(e.UI.Folding.updating){return false}else{var t=e.refs.$(t);if(t.length>0){var n=t.parents().filter("div.JOBAD_Folding_Wrapper")}else{var n=e.refs.$("div.JOBAD_Folding_Wrapper")}e.UI.Folding.updating=true;e.util.orderTree(n).each(function(){e.refs.$(this).trigger("JOBAD.UI.Folding.update")});e.UI.Folding.updating=false;e.refs.$(window).trigger("JOBAD.UI.Folding.update");return true}};e.UI.Folding.fold=function(t){var t=e.refs.$(t);if(!t.data("JOBAD.UI.Folding.enabled")){e.console.log("Can't fold element: Folding not enabled. ");return false}t.parent().parent().trigger("JOBAD.UI.Folding.fold");return true};e.UI.Folding.unfold=function(t){e.refs.$(t).each(function(){var t=e.refs.$(this);if(!t.data("JOBAD.UI.Folding.enabled")){e.console.log("Can't unfold element: Folding not enabled. ")}t.parent().parent().trigger("JOBAD.UI.Folding.unfold")});return true};e.UI.Folding.disable=function(t,n){var t=e.refs.$(t);if(t.length>1){var r=arguments.callee;return t.each(function(e,t){r(t)})}if(t.data("JOBAD.UI.Folding.enabled")!==true){e.console.log("Can't disable folding on element: Folding already disabled. ");return}t.data("JOBAD.UI.Folding.state",t.data("JOBAD.UI.Folding.wrappers").eq(0).parent().data("JOBAD.UI.Folding.state")?true:false);if(n?false:true){e.UI.Folding.unfold(t);e.util.markDefault(t);t.removeData("JOBAD.UI.Folding.config")}t.data("JOBAD.UI.Folding.callback")(t);t.data("JOBAD.UI.Folding.onStateChange")(t);t.data("JOBAD.UI.Folding.wrappers").remove();e.UI.Overlay.undraw(t.parent());t.unwrap().unwrap().removeData("JOBAD.UI.Folding.callback").removeData("JOBAD.UI.Folding.onStateChange").removeData("JOBAD.UI.Folding.enabled").removeData("JOBAD.UI.Folding.wrappers");return t};e.UI.Folding.isFoldable=function(t){return e.util.closest(t,function(e){return e.data("JOBAD.UI.Folding.enabled")}).length>0};e.UI.Folding.show=function(t){return e.refs.$(t).each(function(){var t=e.refs.$(this).parents().add(e.refs.$(this)).filter(function(){var t=e.refs.$(this);return t.data("JOBAD.UI.Folding.enabled")?true:false});if(t.length>0){e.UI.Folding.unfold(t.get().reverse())}})};e.UI.Toolbar={};var v=e.refs.$();e.UI.Toolbar.config={height:20};e.UI.Toolbar.add=function(){var t=e.refs.$("<div>").css({width:"100%",height:e.UI.Toolbar.config.height}).appendTo("body");v=v.add(t);e.UI.Toolbar.update();e.util.markHidden(t);t.on("contextmenu",function(e){return e.ctrlKey});return t};e.UI.Toolbar.update=e.util.throttle(function(){var t=0;v=v.filter(function(){var n=e.refs.$(this);if(n.parent().length!=0){n.css({position:"fixed",right:0,bottom:t});t+=n.height();return true}else{return false}})},300);e.UI.Toolbar.moveUp=function(t){var n=v.index(t);if(n>=0){v=e.refs.$(e.util.permuteArray(v,n,n+1))}e.UI.Toolbar.update()};e.UI.Toolbar.moveDown=function(t){var n=v.index(t);if(n>=0){v=e.refs.$(e.util.permuteArray(v,n,n-1))}e.UI.Toolbar.update()};e.Sidebar={};e.Sidebar.styles={};e.Sidebar.types=[];e.Sidebar.desc=["Sidebar position"];e.Sidebar.registerSidebarStyle=function(t,n,r,i,s){if(e.Sidebar.styles.hasOwnProperty(t)){e.console.log("Warning: Sidebar Style with name '"+t+"' already exists");return true}e.Sidebar.types.push(t);e.Sidebar.desc.push(n);e.Sidebar.styles[t]={register:r,deregister:i,update:s}};e.Sidebar.registerSidebarStyle("right","Right",e.util.argWrap(e.UI.Sidebar.addNotification,function(e){e.push("right");return e}),e.UI.Sidebar.removeNotification,function(){e.UI.Sidebar.forceNotificationUpdate();if(e.util.objectEquals(this.Sidebar.PastRequestCache,{})){e.UI.Sidebar.unwrap(this.element)}});e.Sidebar.registerSidebarStyle("left","Left",e.util.argWrap(e.UI.Sidebar.addNotification,function(e){e.push("left");return e}),e.UI.Sidebar.removeNotification,function(){e.UI.Sidebar.forceNotificationUpdate();if(e.util.objectEquals(this.Sidebar.PastRequestCache,{})){e.UI.Sidebar.unwrap(this.element)}});e.Sidebar.registerSidebarStyle("none","Hidden",function(){return e.refs.$("<div>")},function(){},function(){});e.events.SideBarUpdate={"default":function(){},Setup:{init:{Sidebar:{getSidebarImplementation:function(t){return e.util.bindEverything(e.Sidebar.styles[t],this)},forceInit:function(){if(typeof this.Sidebar.ElementRequestCache=="undefined"){this.Sidebar.ElementRequestCache=[]}if(typeof this.Sidebar.Elements=="undefined"){this.Sidebar.Elements={}}if(typeof this.Sidebar.PastRequestCache=="undefined"){this.Sidebar.PastRequestCache={}}if(!this.Event.SideBarUpdate.enabled){return}var e=this.Config.get("sidebar_type");if(this.Event.SideBarUpdate.type!=e){this.Sidebar.transit(e)}},makeCache:function(){var e=[];for(var t in this.Sidebar.PastRequestCache){e.push(this.Sidebar.PastRequestCache[t])}return e},transit:function(e){var t=this.Sidebar.makeCache();for(var n in this.Sidebar.Elements){this.Sidebar.removeNotificationT(this.Event.SideBarUpdate.type,this.Sidebar.Elements[n],false)}this.Sidebar.redrawT(this.Event.SideBarUpdate.type);this.Event.SideBarUpdate.type=e;for(var r=0;r<t.length;r++){this.Sidebar.registerNotification(t[r][0],t[r][1],false)}this.Sidebar.redrawT(e)},redraw:function(){if(typeof this.Event.SideBarUpdate.enabled=="undefined"){return}this.Sidebar.forceInit();return this.Sidebar.redrawT(this.Event.SideBarUpdate.type)},redrawT:function(e){this.Sidebar.redrawing=true;var t=this.element;var n=this.Sidebar.getSidebarImplementation(e);for(var r=0;r<this.Sidebar.ElementRequestCache.length;r++){var i=this.Sidebar.ElementRequestCache[r][0];var s=this.Sidebar.ElementRequestCache[r][1];var o=this.Sidebar.ElementRequestCache[r][2];this.Sidebar.Elements[i]=n["register"](this.element,s,o).data("JOBAD.Events.Sidebar.id",i);this.Sidebar.PastRequestCache[i]=[s,o]}this.Sidebar.ElementRequestCache=[];n["update"]();this.Event.SideBarUpdate.trigger();this.Sidebar.redrawing=false},registerNotification:function(t,n,r){this.Sidebar.forceInit();var i=e.util.UID();var n=typeof n=="undefined"?{}:n;n.menuThis=this;this.Sidebar.ElementRequestCache.push([i,e.refs.$(t),e.util.clone(n)]);if(typeof r=="boolean"?r:true){this.Sidebar.redraw();return this.Sidebar.Elements[i]}},removeNotification:function(e,t){this.Sidebar.forceInit();if(!this.Event.SideBarUpdate.enabled){var n=e.data("JOBAD.Events.Sidebar.id");for(var r=0;r<this.Sidebar.PastRequestCache.length;r++){if(this.Sidebar.PastRequestCache[r][0]==n){this.Sidebar.PastRequestCache.splice(r,1);break}}}else{return this.Sidebar.removeNotificationT(this.Event.SideBarUpdate.type,e,t)}},removeNotificationT:function(t,n,r){var i=this.Sidebar.getSidebarImplementation(t);if(n instanceof e.refs.$){var s=n.data("JOBAD.Events.Sidebar.id");i["deregister"](n);delete this.Sidebar.Elements[s];delete this.Sidebar.PastRequestCache[s];if(typeof r=="boolean"?r:true){this.Sidebar.redrawT(t)}return s}else{e.error("JOBAD Sidebar Error: Tried to remove invalid Element. ")}}}},enable:function(e){var t=this;this.Event.SideBarUpdate.enabled=true;this.Event.SideBarUpdate.type=this.Config.get("sidebar_type");this.Sidebar.redraw()},disable:function(e){var t=[];for(var n in this.Sidebar.Elements){t.push([n,this.Sidebar.PastRequestCache[n][0],this.Sidebar.PastRequestCache[n][1]]);this.Sidebar.removeNotification(this.Sidebar.Elements[n],false)}this.Sidebar.redraw();this.Sidebar.ElementRequestCache=t;this.Event.SideBarUpdate.enabled=undefined}},namespace:{getResult:function(){if(this.Event.SideBarUpdate.enabled){this.modules.iterateAnd(function(e){e.SideBarUpdate.call(e,e.getJOBAD());return true})}},trigger:function(){a(this,"SideBarUpdate",[]);this.Event.SideBarUpdate.getResult();f(this,"SideBarUpdate",[])}}};e.ifaces.push(function(){var t=this;this.Folding={};this.Folding.enable=function(n,r){if(typeof n=="undefined"){var n=this.element}var n=e.refs.$(n);if(!this.contains(n)){JOABD.console.warn("Can't enable folding on element: Not a member of this JOBADInstance");return}this.Event.trigger("folding.enable",[n]);if(n.is(this.element)){if(n.data("JOBAD.UI.Folding.virtualFolding")){n=n.data("JOBAD.UI.Folding.virtualFolding")}else{this.element.wrapInner(e.refs.$("<div></div>"));n=this.element.children().get(0);this.element.data("JOBAD.UI.Folding.virtualFolding",e.refs.$(n))}}return e.UI.Folding.enable(n,e.util.extend(e.util.defined(r),{update:function(){if(!t.Sidebar.redrawing){t.Sidebar.redraw()}}}))};this.Folding.disable=function(t){if(typeof t=="undefined"){var t=this.element}var t=e.refs.$(t);this.Event.trigger("folding.disable",[t]);if(t.data("JOBAD.UI.Folding.virtualFolding")){var n=t.data("JOBAD.UI.Folding.virtualFolding");e.UI.Folding.disable(n);n.replaceWith(n.children());return t.removeData("JOBAD.UI.Folding.virtualFolding")}else{return e.UI.Folding.disable(t)}};this.Folding.isEnabled=function(t){if(typeof t=="undefined"){var t=this.element}var t=e.refs.$(t);if(t.data("JOBAD.UI.Folding.virtualFolding")){return t.data("JOBAD.UI.Folding.virtualFolding").data("JOBAD.UI.Folding.enabled")?true:false}else{return t.data("JOBAD.UI.Folding.enabled")?true:false}};this.Folding=e.util.bindEverything(this.Folding,this)});e.events.Toolbar={"default":function(e,t){return false},Setup:{enable:function(){this.modules.iterateAnd(function(e){e.Toolbar.enable();return true})},disable:function(){this.modules.iterateAnd(function(e){e.Toolbar.disable();return true})}},namespace:{getResult:function(){var e=this;this.modules.iterateAnd(function(e){e.Toolbar.show();return true})},trigger:function(){a(this,"Toolbar",[]);this.Event.Toolbar.getResult();f(this,"Toolbar",[])}}};e.modules.ifaces.push([function(e,t){return e},function(){var t=this;var n=t.info().identifier;var r=undefined;var i=t.getJOBAD();var s=false;this.Toolbar.get=function(){return r};this.Toolbar.isEnabled=function(){return s};this.Toolbar.enable=function(){if(t.Toolbar.isEnabled()){t.Toolbar.disable()}var o=e.UI.Toolbar.add();var u=t.Toolbar.call(t,t.getJOBAD(),o);if(u!==true){o.remove();e.UI.Toolbar.update();return false}else{r=o;i.Event.trigger("Toolbar.add",n);s=true;return true}};this.Toolbar.disable=function(){if(!t.Toolbar.isEnabled()){return false}r.remove();e.UI.Toolbar.update();r=undefined;i.Event.trigger("Toolbar.remove",n);s=false;return true};var o=i.Config.get("auto_show_toolbar");this.Toolbar.setVisible=function(){o=true;t.Toolbar.show()};this.Toolbar.setHidden=function(){o=false;t.Toolbar.show()};this.Toolbar.isVisible=function(){return o};this.Toolbar.show=function(){if(t.Toolbar.isVisible()&&t.isActive()&&i.Instance.isFocused()){t.Toolbar.enable();return true}else{t.Toolbar.disable();return false}};this.Toolbar.moveUp=function(){return e.UI.Toolbar.moveUp(r)};this.Toolbar.moveDown=function(){return e.UI.Toolbar.moveDown(r)};i.Event.on("module.activate",function(e){if(e.info().identifier==n){t.Toolbar.show()}});i.Event.on("instance.focus",function(e){t.Toolbar.show()});i.Event.on("instance.unfocus",function(e){t.Toolbar.disable()})}]);e.events.leftClick={"default":function(){return false},Setup:{enable:function(t){var n=this;t.delegate("*","click.JOBAD.leftClick",function(t){var r=e.refs.$(t.target);switch(t.which){case 1:a(n,"leftClick",[r]);n.Event.leftClick.trigger(r);f(n,"leftClick",[r]);t.stopPropagation();break;default:}})},disable:function(e){e.undelegate("*","click.JOBAD.leftClick")}},namespace:{getResult:function(e){return this.modules.iterateAnd(function(t){t.leftClick.call(t,e,t.getJOBAD());return true})},trigger:function(t){if(e.util.isHidden(t)){return true}var n=this.Event.leftClick.getResult(t);return n}}};e.events.keyPress={"default":function(e,t){return false},Setup:{enable:function(t){var n=this;n.Event.keyPress.__handlerName=e.util.onKey(function(e){if(n.Instance.isFocused()){a(n,"keyPress",[e]);var t=n.Event.keyPress.trigger(e);f(n,"keyPress",[e]);return t}else{return true}})},disable:function(t){e.refs.$(document).off(this.Event.keyPress.__handlerName)}},namespace:{getResult:function(e){var t=this.modules.iterateAnd(function(t){return!t.keyPress.call(t,e,t.getJOBAD())});return t},trigger:function(e){var t=this.Event.keyPress.getResult(e);return t}}};e.events.dblClick={"default":function(){return false},Setup:{enable:function(t){var n=this;t.delegate("*","dblclick.JOBAD.dblClick",function(t){var r=e.refs.$(t.target);a(n,"dblClick",[r]);var i=n.Event.dblClick.trigger(r);f(n,"dblClick",[r]);t.stopPropagation()})},disable:function(e){e.undelegate("*","dblclick.JOBAD.dblClick")}},namespace:{getResult:function(e){return this.modules.iterateAnd(function(t){t.dblClick.call(t,e,t.getJOBAD());return true})},trigger:function(t){if(e.util.isHidden(t)){return true}var n=this.Event.dblClick.getResult(t);return n}}};e.events.onEvent={"default":function(){},Setup:{enable:function(e){var t=this;t.Event.onEvent.id=t.Event.on("event.handlable",function(e,n){t.Event.onEvent.trigger(e,n)})},disable:function(e){var t=this;t.Event.off(t.Event.onEvent.id)}},namespace:{getResult:function(e,t){return this.modules.iterateAnd(function(n){n.onEvent.call(n,e,t,n.getJOBAD());return true})},trigger:function(t,n){if(e.util.isHidden(n)){return true}return this.Event.onEvent.getResult(t,n)}}};e.events.contextMenuEntries={"default":function(){return[]},Setup:{enable:function(t){var n=this;e.UI.ContextMenu.enable(t,function(e){a(n,"contextMenuEntries",[e]);var t=n.Event.contextMenuEntries.getResult(e);f(n,"contextMenuEntries",[e]);return t},{type:function(e){return n.Config.get("cmenu_type")},show:function(){n.Event.trigger("contextmenu.open",[]);n.Event.handle("contextMenuOpen")},close:function(){n.Event.trigger("contextmenu.close",[]);n.Event.handle("contextMenuClose")},stopPropagnate:true})},disable:function(t){e.UI.ContextMenu.disable(t)}},namespace:{getResult:function(t){var n=[];var r=this.modules.iterate(function(n){var r=t;var i=[];while(true){if(r.length==0||i.length>0){return i}i=n.contextMenuEntries.call(n,r,n.getJOBAD());i=e.UI.ContextMenu.generateMenuList(i);r=r.parent()}});for(var i=0;i<r.length;i++){var s=r[i];for(var o=0;o<s.length;o++){n.push(s[o])}}if(n.length==0){return false}else{return n}}}};e.events.configUpdate={"default":function(e,t){},Setup:{enable:function(t){var n=this;e.refs.$("body").on("JOBAD.ConfigUpdateEvent",function(e,t,r){a(n,"configUpdate",[t,r]);n.Event.configUpdate.trigger(t,r);f(n,"configUpdate",[t,r])})},disable:function(t){e.refs.$("body").off("JOBAD.ConfigUpdateEvent")}},namespace:{getResult:function(e,t){return this.modules.iterateAnd(function(n){if(n.info().identifier==t){n.configUpdate.call(n,e,n.getJOBAD())}return true})},trigger:function(e,t){return this.Event.configUpdate.getResult(e,t)}}};e.events.hoverText={"default":function(){return false},Setup:{init:function(){this.Event.hoverText.activeHoverElement=undefined},enable:function(t){var n=this;var r=function(r){var i=e.refs.$(this);var s=n.Event.hoverText.trigger(i);if(s){r.stopPropagation()}else if(!i.is(t)){e.refs.$(this).parent().trigger("mouseenter.JOBAD.hoverText",r)}t.trigger("JOBAD.Event",["hoverText",i]);return false};var i=function(t){return n.Event.hoverText.untrigger(e.refs.$(this))};t.delegate("*","mouseenter.JOBAD.hoverText",r).delegate("*","mouseleave.JOBAD.hoverText",i)},disable:function(e){if(typeof this.Event.hoverText.activeHoverElement!="undefined"){me.Event.hoverText.untrigger()}e.undelegate("*","mouseenter.JOBAD.hoverText").undelegate("*","mouseleave.JOBAD.hoverText")}},namespace:{getResult:function(t){if(e.util.isHidden(t)){return true}var n=false;this.modules.iterate(function(r){var i=r.hoverText.call(r,t,r.getJOBAD());if(typeof i!="undefined"&&typeof n=="boolean"){if(typeof i=="string"){n=e.refs.$("<p>").text(i)}else if(typeof i!="boolean"){try{n=e.refs.$(i)}catch(s){e.error("Module '"+r.info().identifier+"' returned invalid HOVER result. ")}}else if(i===true){n=true}}return true});return n},trigger:function(t){if(t.data("JOBAD.hover.Active")){return false}a(this,"hoverText",[t]);var n=this.Event.hoverText.getResult(t);if(typeof n=="boolean"){f(this,"hoverText",[t]);return n}if(this.Event.hoverText.activeHoverElement instanceof e.refs.$){if(this.Event.hoverText.activeHoverElement.is(t)){return true}this.Event.hoverText.untrigger(this.Event.hoverText.activeHoverElement)}this.Event.hoverText.activeHoverElement=t;t.data("JOBAD.hover.Active",true);var r=window.setTimeout(function(){t.removeData("JOBAD.hover.timerId");e.UI.hover.enable(n.html(),"JOBAD_Hover")},e.UI.hover.config.hoverDelay);t.data("JOBAD.hover.timerId",r);return true},untrigger:function(t){if(typeof t=="undefined"){if(this.Event.hoverText.activeHoverElement instanceof e.refs.$){t=this.Event.hoverText.activeHoverElement}else{return false}}if(!t.data("JOBAD.hover.Active")){return false}if(typeof t.data("JOBAD.hover.timerId")=="number"){window.clearTimeout(t.data("JOBAD.hover.timerId"));t.removeData("JOBAD.hover.timerId")}t.removeData("JOBAD.hover.Active");this.Event.hoverText.activeHoverElement=undefined;e.UI.hover.disable();f(this,"hoverText",[t]);if(!t.is(this.element)){this.Event.hoverText.trigger(t.parent());return false}}}};e.storageBackend={getKey:function(t,n){var r=e.storageBackend.engines[e.config.storageBackend][0](t);if(typeof r=="string"){return JSON.parse(r)}else{return n}},setKey:function(t,n){return e.storageBackend.engines[e.config.storageBackend][1](t,JSON.stringify(n))}};e.storageBackend.engines={none:[function(e){},function(e,t){}],cookie:[function(e){var t=document.cookie;var n=t.indexOf(" "+e+"=");n=n==-1?t.indexOf(e+"="):n;if(n==-1){return false}n=t.indexOf("=",n)+1;var r=t.indexOf(";",n);r=r==-1?t.length:r;return unescape(t.substring(n,r))},function(e,t){var n=new Date;n.setDate(n.getDate()+7);document.cookie=escape(e)+"="+escape(t)+"; expires="+n.toUTCString()+""}]};e.config.storageBackend="cookie";e.modules.validateConfigSetting=function(t,n,r){if(!t.hasOwnProperty(n)){e.console.warn("Undefined user setting: "+n);return false}var i=t[n][0];var s=t[n][1];switch(i){case"string":return s(r)&&typeof r=="string";break;case"bool":return typeof r=="boolean";break;case"integer":return typeof r=="number"&&r%1==0&&s(r);break;case"number":return typeof r=="number"&&s(r);break;case"list":return s(r);break;case"none":return true;break}};e.modules.createProperUserSettingsObject=function(t,n){var r={};for(var i in t){var s="Ignoring UserConfig '"+i+"' in module '"+n+"': Wrong description format";if(t.hasOwnProperty(i)){(function(){var n=t[i];var o=[];if(!e.util.isArray(n)){e.console.warn(s+" (Array required). ");return}if(n.length==0){e.console.warn(s+" (Array may not have length zero). ");return}if(typeof n[0]=="string"){var u=n[0]}else{e.console.warn(s+" (type must be a string). ");return}if(u=="none"){if(n.length==2){var a=n[1]}else{e.console.warn(s+" (Array length 2 required for 'none'. ");return}}else if(n.length==4){var f=n[1];var a=n[2];var l=n[3]}else if(n.length==3){var f=function(){return true};var a=n[1];var l=n[2]}else{e.console.warn(s+" (Array length 3 or 4 required). ");return}switch(u){case"string":o.push("string");if(e.util.isRegExp(f)){o.push(function(e){return f.test(e)})}else if(typeof f=="function"){o.push(f)}else{e.console.warn(s+" (Unknown restriction type for 'string'. ). ");return}try{if(o[o.length-1](a)&&typeof a=="string"){o.push(a)}else{e.console.warn(s+" (Validation function failed for default value. ). ");return}}catch(c){e.console.warn(s+" (Validation function caused exception for default value. ). ");return}if(typeof l=="string"){o.push([l,""])}else if(e.util.isArray(l)){if(l.length==1){l.push("")}if(l.length==2){o.push(l)}else{e.console.warn(s+" (Meta data not allowed for length > 2). ");return}}else{e.console.warn(s+" (Meta data needs to be a string or an array). ");return}break;case"bool":o.push("bool");if(n.length==4){e.console.warn(s+" (Type 'boolean' may not have restrictions. )");return}o.push(f);try{if(o[o.length-1](a)&&typeof a=="boolean"){o.push(a)}else{e.console.warn(s+" (Validation function failed for default value. ). ");return}}catch(c){e.console.warn(s+" (Validation function caused exception for default value. ). ");return}if(typeof l=="string"){o.push([l,""])}else if(e.util.isArray(l)){if(l.length==1){l.push("")}if(l.length==2){o.push(l)}else{e.console.warn(s+" (Meta data not allowed for length > 2). ");return}}else{e.console.warn(s+" (Meta data needs to be a string or an array). ");return}break;case"integer":o.push("integer");if(e.util.isArray(f)){if(f.length==2){o.push(function(e){return e>=f[0]&&e<=f[1]})}else{e.console.warn(s+" (Restriction Array must be of length 2). ")}}else if(typeof f=="function"){o.push(f)}else{e.console.warn(s+" (Unknown restriction type for 'integer'. ). ");return}try{if(o[o.length-1](a)&&a%1==0){o.push(a)}else{e.console.warn(s+" (Validation function failed for default value. ). ");return}}catch(c){e.console.warn(s+" (Validation function caused exception for default value. ). ");return}if(typeof l=="string"){o.push([l,""])}else if(e.util.isArray(l)){if(l.length==1){l.push("")}if(l.length==2){o.push(l)}else{e.console.warn(s+" (Meta data not allowed for length > 2). ");return}}else{e.console.warn(s+" (Meta data needs to be a string or an array). ");return}break;case"number":o.push("number");if(e.util.isArray(f)){if(f.length==2){o.push(function(e){return e>=f[0]&&e<=f[1]})}else{e.console.warn(s+" (Restriction Array must be of length 2). ")}}else if(typeof f=="function"){o.push(f)}else{e.console.warn(s+" (Unknown restriction type for 'number'. ). ");return}try{if(o[o.length-1](a)&&typeof a=="number"){o.push(a)}else{e.console.warn(s+" (Validation function failed for default value. ). ");return}}catch(c){e.console.warn(s+" (Validation function caused exception for default value. ). ");return}if(typeof l=="string"){o.push([l,""])}else if(e.util.isArray(l)){if(l.length==1){l.push("")}if(l.length==2){o.push(l)}else{e.console.warn(s+" (Meta data not allowed for length > 2). ");return}}else{e.console.warn(s+" (Meta data needs to be a string or an array). ");return}break;case"list":o.push("list");if(e.util.isArray(f)&&n.length==4){if(f.length==0){e.console.warn(s+" (Array restriction must be non-empty). ");return}o.push(function(t){return e.util.indexOf(f,t)!=-1})}else{e.console.warn(s+" (Type 'list' needs array restriction. ). ");return}try{if(o[o.length-1](a)){o.push(a)}else{e.console.warn(s+" (Validation function failed for default value. ). ");return}}catch(c){e.console.warn(s+" (Validation function caused exception for default value. ). ");return}if(e.util.isArray(l)){if(l.length==f.length+1){o.push(l)}else{e.console.warn(s+" (Meta data has wrong length). ");return}}else{e.console.warn(s+" (Meta data for type 'list' an array). ");return}o.push(f);break;case"none":o.push("none");o.push(a);break;default:e.console.warn(s+" (Unknown type '"+u+"'. ). ");return;break}r[i]=o})()}}return r};e.modules.getDefaultConfigSetting=function(t,n){if(!t.hasOwnProperty(n)){e.console.warn("Undefined user setting: "+n);return}return t[n][2]};var m={};var g={};var y={};e.UserConfig={};e.UserConfig.set=function(t,n,r){var i=e.UserConfig.getTypes(t);if(e.util.isObject(n)){var s=e.util.keys(n);return e.util.map(s,function(r){return e.UserConfig.set(t,r,n[r])})}if(e.UserConfig.canSet(t,n,r)){if(e.util.objectEquals(r,e.UserConfig.get(t,n))){return}m[t][n]=r}else{e.console.warn("Can not set user config '"+n+"' of module '"+t+"': Validation failure. ");return}e.storageBackend.setKey(t,m[t]);e.refs.$("body").trigger("JOBAD.ConfigUpdateEvent",[n,t]);return n};e.UserConfig.canSet=function(t,n,r){var i=e.UserConfig.getTypes(t);if(e.util.isObject(n)){var s=e.util.keys(n);return e.util.lAnd(e.util.map(s,function(t){return e.modules.validateConfigSetting(i,t,n[t])}))}else{return e.modules.validateConfigSetting(i,n,r)}};e.UserConfig.get=function(t,n){var r=e.UserConfig.getTypes(t);if(e.util.isObject(n)&&!e.util.isArray(n)){var n=e.util.keys(n)}if(e.util.isArray(n)){var i={};e.util.map(n,function(n){i[n]=e.UserConfig.get(t,n)});return i}var i=m[t][n];if(e.modules.validateConfigSetting(r,n,i)){return i}else{e.console.log("Failed to access user setting '"+n+"'");return}};e.UserConfig.getTypes=function(t){if(!g.hasOwnProperty(t)){e.error("Can't access UserConfig for module '"+t+"': Module not found (is it registered yet? )");return}return g[t]};e.UserConfig.reset=function(t,n){var r=e.UserConfig.getTypes(t);m[t]=e.storageBackend.getKey(t);if(typeof m[t]=="undefined"){m[t]={};for(var i in r){m[t][i]=e.modules.getDefaultConfigSetting(r,i);e.refs.$("body").trigger("JOBAD.ConfigUpdateEvent",[i,t])}}};e.UserConfig.getMessage=function(t){if(!g.hasOwnProperty(t)){e.error("Can't access UserConfig for module '"+t+"': Module not found (is it registered yet? )");return}var n=y[t];return typeof n=="undefined"?"":n};e.UserConfig.setMessage=function(t,n){if(!g.hasOwnProperty(t)){e.error("Can't access UserConfig for module '"+t+"': Module not found (is it registered yet? )");return}y[t]=n;return n};e.UserConfig.getFor=function(t){if(!g.hasOwnProperty(t)){e.error("Can't access UserConfig for module '"+t+"': Module not found (is it registered yet? )");return}return{set:function(n,r){return e.UserConfig.set(t,n,r)},setMessage:function(n){return e.UserConfig.setMessage(t,n)},get:function(n){return e.UserConfig.get(t,n)},getMessage:function(){return e.UserConfig.getMessage(t)},canSet:function(n,r){return e.UserConfig.canSet(t,n,r)},getTypes:function(){return e.UserConfig.getTypes(t)},reset:function(n){return e.UserConfig.reset(t,n)}}};e.modules.extensions.config={required:false,validate:function(e){return true},init:function(t,n,r,i){return e.modules.createProperUserSettingsObject(t?n:{},i.info.identifier)},globalProperties:["UserConfig","Config"],onRegister:function(t,n,r){var i=n.info.identifier;g[i]=t;if(!m.hasOwnProperty()){e.UserConfig.reset(n.info.identifier)}},onLoad:function(t,n,r){this.UserConfig=e.UserConfig.getFor(n.info.identifier)}};e.ifaces.push(function(t,n){var r=n[1];var i=e.modules.createProperUserSettingsObject({cmenu_type:["list",["standard","radial"],"standard",["Context Menu Type","Standard","Radial"]],sidebar_type:["list",e.Sidebar.types,e.Sidebar.types[0],e.Sidebar.desc],restricted_user_config:["none",[]],auto_show_toolbar:["bool",false,"Auto show all toolbars"]},"");var s=e.util.extend({},typeof r=="undefined"?{}:r);this.Config={};this.Config.get=function(t){if(!i.hasOwnProperty(t)){e.console.log("Can't find '"+t+"' in Instance Config. ");return undefined}if(s.hasOwnProperty(t)){return s[t]}else{return i[t][2]}};this.Config.set=function(e,t){s[e]=t};this.Config.getTypes=function(){return i};this.Config.reset=function(){s={}};this.Config=e.util.bindEverything(this.Config,this)});e.Instances={};e.Instances.all={};var b=undefined;var w=undefined;e.ifaces.push(function(t){e.Instances.all[t.ID]=this;var n=false;var r=false;var i=undefined;t.Instance={};t.Instance.focus=function(){if(n){return false}if(r){return false}if(typeof b!="undefined"){i=b;b.Instance.unfocus()}if(typeof w!="undefined"){w.Instance.unfocus()}r=true;w=t;t.Event.trigger("instance.focus_query");t.Setup.enabled(function(){if(r){r=false;w=undefined;n=true;b=t;t.Event.trigger("instance.focus",[i]);t.Event.focus.trigger(i);i=undefined}});return true};t.Instance.unfocus=function(){if(n){b=undefined;n=false;t.Event.trigger("instance.unfocus");t.Event.unfocus.trigger();return true}else{if(r){r=false;w=undefined;t.Event.trigger("instance.focus_query_lost");return true}else{e.console.warn("Can't unfocus JOBADInstance: Instance neither focused nor queried. ");return false}}};t.Instance.isFocused=function(){return n};t.Instance.focused=function(e){if(t.Instance.isFocused()){e.call(t)}else{t.Event.once("instance.focus",function(){e.call(t)})}};var s=false;var o=[];var u=["contextmenu.open","contextMenuEntries","dblClick","leftClick","hoverText"];t.Instance.enableAutoFocus=function(){if(s){return false}t.Event.trigger("instance.autofocus.enable");for(var e=0;e<u.length;e++){(function(){var n=u[e];o.push(t.Event.on(n,function(){t.Event.trigger("instance.autofocus.trigger",[n]);t.Instance.focus()}))})()}s=true;return true};t.Instance.disableAutoFocus=function(){if(!s){return false}t.Event.trigger("instance.autofocus.disable");while(o.length>0){var e=o.pop();t.Event.off(e)}s=false;return true};t.Instance.isAutoFocusEnabled=function(){return s};t.Event.on("instance.beforeDisable",function(){if(n){t.Instance.unfocus();t.Event.once("instance.disable",function(){i=t;t.Instance.focus()})}})});e.Instances.focused=function(){return b};e.events.focus={"default":function(e,t){},Setup:{enable:function(e){return},disable:function(e){return}},namespace:{getResult:function(e){return this.modules.iterateAnd(function(t){t.focus.call(t,t.getJOBAD(),e);return true})},trigger:function(e){return this.Event.focus.getResult(e)}}};e.events.unfocus={"default":function(e){},Setup:{enable:function(e){return},disable:function(e){return}},namespace:{getResult:function(){return this.modules.iterateAnd(function(e){e.unfocus.call(e,e.getJOBAD());return true})},trigger:function(){return this.Event.unfocus.getResult()}}};for(var E in e.modules.extensions){e.modules.cleanProperties.push(E)}for(var E in e.events){if(!e.util.contains(u,E)){e.modules.cleanProperties.push(E)}}return e}(); +JOBAD.config.debug = false; \ No newline at end of file diff --git a/servlet/src/main/resources/app/jobad/libs/css/bootstrap/css/bootstrap.less.css b/servlet/src/main/resources/app/jobad/libs/css/bootstrap/css/bootstrap.less.css new file mode 100644 index 0000000000000000000000000000000000000000..6b64baeb7228d2d612c6703b0a1f0a5ab178a180 --- /dev/null +++ b/servlet/src/main/resources/app/jobad/libs/css/bootstrap/css/bootstrap.less.css @@ -0,0 +1,5222 @@ +/*! + * Bootstrap v2.3.2 + * + * Copyright 2013 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world by @mdo and @fat. + */ +.bootstrap { + /* Allow for input prepend/append in search forms */ + + /* White icons with optional class, or on hover/focus/active states of certain elements */ + + /* move down carets for tabs */ + +} +.bootstrap .clearfix { + *zoom: 1; +} +.bootstrap .clearfix:before, +.bootstrap .clearfix:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .clearfix:after { + clear: both; +} +.bootstrap .hide-text { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} +.bootstrap .input-block-level { + display: block; + width: 100%; + min-height: 30px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap article, +.bootstrap aside, +.bootstrap details, +.bootstrap figcaption, +.bootstrap figure, +.bootstrap footer, +.bootstrap header, +.bootstrap hgroup, +.bootstrap nav, +.bootstrap section { + display: block; +} +.bootstrap audio, +.bootstrap canvas, +.bootstrap video { + display: inline-block; + *display: inline; + *zoom: 1; +} +.bootstrap audio:not([controls]) { + display: none; +} +.bootstrap html { + font-size: 100%; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} +.bootstrap a:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.bootstrap a:hover, +.bootstrap a:active { + outline: 0; +} +.bootstrap sub, +.bootstrap sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} +.bootstrap sup { + top: -0.5em; +} +.bootstrap sub { + bottom: -0.25em; +} +.bootstrap img { + width: auto\9; + height: auto; + max-width: 100%; + vertical-align: middle; + border: 0; + -ms-interpolation-mode: bicubic; +} +.bootstrap #map_canvas img, +.bootstrap .google-maps img { + max-width: none; +} +.bootstrap button, +.bootstrap input, +.bootstrap select, +.bootstrap textarea { + margin: 0; + font-size: 100%; + vertical-align: middle; +} +.bootstrap button, +.bootstrap input { + *overflow: visible; + line-height: normal; +} +.bootstrap button::-moz-focus-inner, +.bootstrap input::-moz-focus-inner { + padding: 0; + border: 0; +} +.bootstrap button, +.bootstrap html input[type="button"], +.bootstrap input[type="reset"], +.bootstrap input[type="submit"] { + cursor: pointer; + -webkit-appearance: button; +} +.bootstrap label, +.bootstrap select, +.bootstrap button, +.bootstrap input[type="button"], +.bootstrap input[type="reset"], +.bootstrap input[type="submit"], +.bootstrap input[type="radio"], +.bootstrap input[type="checkbox"] { + cursor: pointer; +} +.bootstrap input[type="search"] { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + -webkit-appearance: textfield; +} +.bootstrap input[type="search"]::-webkit-search-decoration, +.bootstrap input[type="search"]::-webkit-search-cancel-button { + -webkit-appearance: none; +} +.bootstrap textarea { + overflow: auto; + vertical-align: top; +} +@media print { + .bootstrap * { + color: #000 !important; + text-shadow: none !important; + background: transparent !important; + box-shadow: none !important; + } + .bootstrap a, + .bootstrap a:visited { + text-decoration: underline; + } + .bootstrap a[href]:after { + content: " (" attr(href) ")"; + } + .bootstrap abbr[title]:after { + content: " (" attr(title) ")"; + } + .bootstrap .ir a:after, + .bootstrap a[href^="javascript:"]:after, + .bootstrap a[href^="#"]:after { + content: ""; + } + .bootstrap pre, + .bootstrap blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + .bootstrap thead { + display: table-header-group; + } + .bootstrap tr, + .bootstrap img { + page-break-inside: avoid; + } + .bootstrap img { + max-width: 100% !important; + } + @page { + margin: 0.5cm; + } + .bootstrap p, + .bootstrap h2, + .bootstrap h3 { + orphans: 3; + widows: 3; + } + .bootstrap h2, + .bootstrap h3 { + page-break-after: avoid; + } +} +.bootstrap body { + margin: 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 20px; + color: #333333; + background-color: #ffffff; +} +.bootstrap a { + color: #0088cc; + text-decoration: none; +} +.bootstrap a:hover, +.bootstrap a:focus { + color: #005580; + text-decoration: underline; +} +.bootstrap .img-rounded { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} +.bootstrap .img-polaroid { + padding: 4px; + background-color: #fff; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.2); + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); +} +.bootstrap .img-circle { + -webkit-border-radius: 500px; + -moz-border-radius: 500px; + border-radius: 500px; +} +.bootstrap .row { + margin-left: -20px; + *zoom: 1; +} +.bootstrap .row:before, +.bootstrap .row:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .row:after { + clear: both; +} +.bootstrap [class*="span"] { + float: left; + min-height: 1px; + margin-left: 20px; +} +.bootstrap .container, +.bootstrap .navbar-static-top .container, +.bootstrap .navbar-fixed-top .container, +.bootstrap .navbar-fixed-bottom .container { + width: 940px; +} +.bootstrap .span12 { + width: 940px; +} +.bootstrap .span11 { + width: 860px; +} +.bootstrap .span10 { + width: 780px; +} +.bootstrap .span9 { + width: 700px; +} +.bootstrap .span8 { + width: 620px; +} +.bootstrap .span7 { + width: 540px; +} +.bootstrap .span6 { + width: 460px; +} +.bootstrap .span5 { + width: 380px; +} +.bootstrap .span4 { + width: 300px; +} +.bootstrap .span3 { + width: 220px; +} +.bootstrap .span2 { + width: 140px; +} +.bootstrap .span1 { + width: 60px; +} +.bootstrap .offset12 { + margin-left: 980px; +} +.bootstrap .offset11 { + margin-left: 900px; +} +.bootstrap .offset10 { + margin-left: 820px; +} +.bootstrap .offset9 { + margin-left: 740px; +} +.bootstrap .offset8 { + margin-left: 660px; +} +.bootstrap .offset7 { + margin-left: 580px; +} +.bootstrap .offset6 { + margin-left: 500px; +} +.bootstrap .offset5 { + margin-left: 420px; +} +.bootstrap .offset4 { + margin-left: 340px; +} +.bootstrap .offset3 { + margin-left: 260px; +} +.bootstrap .offset2 { + margin-left: 180px; +} +.bootstrap .offset1 { + margin-left: 100px; +} +.bootstrap .row-fluid { + width: 100%; + *zoom: 1; +} +.bootstrap .row-fluid:before, +.bootstrap .row-fluid:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .row-fluid:after { + clear: both; +} +.bootstrap .row-fluid [class*="span"] { + display: block; + float: left; + width: 100%; + min-height: 30px; + margin-left: 2.127659574468085%; + *margin-left: 2.074468085106383%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap .row-fluid [class*="span"]:first-child { + margin-left: 0; +} +.bootstrap .row-fluid .controls-row [class*="span"] + [class*="span"] { + margin-left: 2.127659574468085%; +} +.bootstrap .row-fluid .span12 { + width: 100%; + *width: 99.94680851063829%; +} +.bootstrap .row-fluid .span11 { + width: 91.48936170212765%; + *width: 91.43617021276594%; +} +.bootstrap .row-fluid .span10 { + width: 82.97872340425532%; + *width: 82.92553191489361%; +} +.bootstrap .row-fluid .span9 { + width: 74.46808510638297%; + *width: 74.41489361702126%; +} +.bootstrap .row-fluid .span8 { + width: 65.95744680851064%; + *width: 65.90425531914893%; +} +.bootstrap .row-fluid .span7 { + width: 57.44680851063829%; + *width: 57.39361702127659%; +} +.bootstrap .row-fluid .span6 { + width: 48.93617021276595%; + *width: 48.88297872340425%; +} +.bootstrap .row-fluid .span5 { + width: 40.42553191489362%; + *width: 40.37234042553192%; +} +.bootstrap .row-fluid .span4 { + width: 31.914893617021278%; + *width: 31.861702127659576%; +} +.bootstrap .row-fluid .span3 { + width: 23.404255319148934%; + *width: 23.351063829787233%; +} +.bootstrap .row-fluid .span2 { + width: 14.893617021276595%; + *width: 14.840425531914894%; +} +.bootstrap .row-fluid .span1 { + width: 6.382978723404255%; + *width: 6.329787234042553%; +} +.bootstrap .row-fluid .offset12 { + margin-left: 104.25531914893617%; + *margin-left: 104.14893617021275%; +} +.bootstrap .row-fluid .offset12:first-child { + margin-left: 102.12765957446808%; + *margin-left: 102.02127659574467%; +} +.bootstrap .row-fluid .offset11 { + margin-left: 95.74468085106382%; + *margin-left: 95.6382978723404%; +} +.bootstrap .row-fluid .offset11:first-child { + margin-left: 93.61702127659574%; + *margin-left: 93.51063829787232%; +} +.bootstrap .row-fluid .offset10 { + margin-left: 87.23404255319149%; + *margin-left: 87.12765957446807%; +} +.bootstrap .row-fluid .offset10:first-child { + margin-left: 85.1063829787234%; + *margin-left: 84.99999999999999%; +} +.bootstrap .row-fluid .offset9 { + margin-left: 78.72340425531914%; + *margin-left: 78.61702127659572%; +} +.bootstrap .row-fluid .offset9:first-child { + margin-left: 76.59574468085106%; + *margin-left: 76.48936170212764%; +} +.bootstrap .row-fluid .offset8 { + margin-left: 70.2127659574468%; + *margin-left: 70.10638297872339%; +} +.bootstrap .row-fluid .offset8:first-child { + margin-left: 68.08510638297872%; + *margin-left: 67.9787234042553%; +} +.bootstrap .row-fluid .offset7 { + margin-left: 61.70212765957446%; + *margin-left: 61.59574468085106%; +} +.bootstrap .row-fluid .offset7:first-child { + margin-left: 59.574468085106375%; + *margin-left: 59.46808510638297%; +} +.bootstrap .row-fluid .offset6 { + margin-left: 53.191489361702125%; + *margin-left: 53.085106382978715%; +} +.bootstrap .row-fluid .offset6:first-child { + margin-left: 51.063829787234035%; + *margin-left: 50.95744680851063%; +} +.bootstrap .row-fluid .offset5 { + margin-left: 44.68085106382979%; + *margin-left: 44.57446808510638%; +} +.bootstrap .row-fluid .offset5:first-child { + margin-left: 42.5531914893617%; + *margin-left: 42.4468085106383%; +} +.bootstrap .row-fluid .offset4 { + margin-left: 36.170212765957444%; + *margin-left: 36.06382978723405%; +} +.bootstrap .row-fluid .offset4:first-child { + margin-left: 34.04255319148936%; + *margin-left: 33.93617021276596%; +} +.bootstrap .row-fluid .offset3 { + margin-left: 27.659574468085104%; + *margin-left: 27.5531914893617%; +} +.bootstrap .row-fluid .offset3:first-child { + margin-left: 25.53191489361702%; + *margin-left: 25.425531914893618%; +} +.bootstrap .row-fluid .offset2 { + margin-left: 19.148936170212764%; + *margin-left: 19.04255319148936%; +} +.bootstrap .row-fluid .offset2:first-child { + margin-left: 17.02127659574468%; + *margin-left: 16.914893617021278%; +} +.bootstrap .row-fluid .offset1 { + margin-left: 10.638297872340425%; + *margin-left: 10.53191489361702%; +} +.bootstrap .row-fluid .offset1:first-child { + margin-left: 8.51063829787234%; + *margin-left: 8.404255319148938%; +} +.bootstrap [class*="span"].hide, +.bootstrap .row-fluid [class*="span"].hide { + display: none; +} +.bootstrap [class*="span"].pull-right, +.bootstrap .row-fluid [class*="span"].pull-right { + float: right; +} +.bootstrap .container { + margin-right: auto; + margin-left: auto; + *zoom: 1; +} +.bootstrap .container:before, +.bootstrap .container:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .container:after { + clear: both; +} +.bootstrap .container-fluid { + padding-right: 20px; + padding-left: 20px; + *zoom: 1; +} +.bootstrap .container-fluid:before, +.bootstrap .container-fluid:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .container-fluid:after { + clear: both; +} +.bootstrap p { + margin: 0 0 10px; +} +.bootstrap .lead { + margin-bottom: 20px; + font-size: 21px; + font-weight: 200; + line-height: 30px; +} +.bootstrap small { + font-size: 85%; +} +.bootstrap strong { + font-weight: bold; +} +.bootstrap em { + font-style: italic; +} +.bootstrap cite { + font-style: normal; +} +.bootstrap .muted { + color: #999999; +} +.bootstrap a.muted:hover, +.bootstrap a.muted:focus { + color: #808080; +} +.bootstrap .text-warning { + color: #c09853; +} +.bootstrap a.text-warning:hover, +.bootstrap a.text-warning:focus { + color: #a47e3c; +} +.bootstrap .text-error { + color: #b94a48; +} +.bootstrap a.text-error:hover, +.bootstrap a.text-error:focus { + color: #953b39; +} +.bootstrap .text-info { + color: #3a87ad; +} +.bootstrap a.text-info:hover, +.bootstrap a.text-info:focus { + color: #2d6987; +} +.bootstrap .text-success { + color: #468847; +} +.bootstrap a.text-success:hover, +.bootstrap a.text-success:focus { + color: #356635; +} +.bootstrap .text-left { + text-align: left; +} +.bootstrap .text-right { + text-align: right; +} +.bootstrap .text-center { + text-align: center; +} +.bootstrap h1, +.bootstrap h2, +.bootstrap h3, +.bootstrap h4, +.bootstrap h5, +.bootstrap h6 { + margin: 10px 0; + font-family: inherit; + font-weight: bold; + line-height: 20px; + color: inherit; + text-rendering: optimizelegibility; +} +.bootstrap h1 small, +.bootstrap h2 small, +.bootstrap h3 small, +.bootstrap h4 small, +.bootstrap h5 small, +.bootstrap h6 small { + font-weight: normal; + line-height: 1; + color: #999999; +} +.bootstrap h1, +.bootstrap h2, +.bootstrap h3 { + line-height: 40px; +} +.bootstrap h1 { + font-size: 38.5px; +} +.bootstrap h2 { + font-size: 31.5px; +} +.bootstrap h3 { + font-size: 24.5px; +} +.bootstrap h4 { + font-size: 17.5px; +} +.bootstrap h5 { + font-size: 14px; +} +.bootstrap h6 { + font-size: 11.9px; +} +.bootstrap h1 small { + font-size: 24.5px; +} +.bootstrap h2 small { + font-size: 17.5px; +} +.bootstrap h3 small { + font-size: 14px; +} +.bootstrap h4 small { + font-size: 14px; +} +.bootstrap .page-header { + padding-bottom: 9px; + margin: 20px 0 30px; + border-bottom: 1px solid #eeeeee; +} +.bootstrap ul, +.bootstrap ol { + padding: 0; + margin: 0 0 10px 25px; +} +.bootstrap ul ul, +.bootstrap ul ol, +.bootstrap ol ol, +.bootstrap ol ul { + margin-bottom: 0; +} +.bootstrap li { + line-height: 20px; +} +.bootstrap ul.unstyled, +.bootstrap ol.unstyled { + margin-left: 0; + list-style: none; +} +.bootstrap ul.inline, +.bootstrap ol.inline { + margin-left: 0; + list-style: none; +} +.bootstrap ul.inline > li, +.bootstrap ol.inline > li { + display: inline-block; + *display: inline; + padding-right: 5px; + padding-left: 5px; + *zoom: 1; +} +.bootstrap dl { + margin-bottom: 20px; +} +.bootstrap dt, +.bootstrap dd { + line-height: 20px; +} +.bootstrap dt { + font-weight: bold; +} +.bootstrap dd { + margin-left: 10px; +} +.bootstrap .dl-horizontal { + *zoom: 1; +} +.bootstrap .dl-horizontal:before, +.bootstrap .dl-horizontal:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .dl-horizontal:after { + clear: both; +} +.bootstrap .dl-horizontal dt { + float: left; + width: 160px; + overflow: hidden; + clear: left; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap; +} +.bootstrap .dl-horizontal dd { + margin-left: 180px; +} +.bootstrap hr { + margin: 20px 0; + border: 0; + border-top: 1px solid #eeeeee; + border-bottom: 1px solid #ffffff; +} +.bootstrap abbr[title], +.bootstrap abbr[data-original-title] { + cursor: help; + border-bottom: 1px dotted #999999; +} +.bootstrap abbr.initialism { + font-size: 90%; + text-transform: uppercase; +} +.bootstrap blockquote { + padding: 0 0 0 15px; + margin: 0 0 20px; + border-left: 5px solid #eeeeee; +} +.bootstrap blockquote p { + margin-bottom: 0; + font-size: 17.5px; + font-weight: 300; + line-height: 1.25; +} +.bootstrap blockquote small { + display: block; + line-height: 20px; + color: #999999; +} +.bootstrap blockquote small:before { + content: '\2014 \00A0'; +} +.bootstrap blockquote.pull-right { + float: right; + padding-right: 15px; + padding-left: 0; + border-right: 5px solid #eeeeee; + border-left: 0; +} +.bootstrap blockquote.pull-right p, +.bootstrap blockquote.pull-right small { + text-align: right; +} +.bootstrap blockquote.pull-right small:before { + content: ''; +} +.bootstrap blockquote.pull-right small:after { + content: '\00A0 \2014'; +} +.bootstrap q:before, +.bootstrap q:after, +.bootstrap blockquote:before, +.bootstrap blockquote:after { + content: ""; +} +.bootstrap address { + display: block; + margin-bottom: 20px; + font-style: normal; + line-height: 20px; +} +.bootstrap code, +.bootstrap pre { + padding: 0 3px 2px; + font-family: Monaco, Menlo, Consolas, "Courier New", monospace; + font-size: 12px; + color: #333333; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.bootstrap code { + padding: 2px 4px; + color: #d14; + white-space: nowrap; + background-color: #f7f7f9; + border: 1px solid #e1e1e8; +} +.bootstrap pre { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 20px; + word-break: break-all; + word-wrap: break-word; + white-space: pre; + white-space: pre-wrap; + background-color: #f5f5f5; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.15); + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap pre.prettyprint { + margin-bottom: 20px; +} +.bootstrap pre code { + padding: 0; + color: inherit; + white-space: pre; + white-space: pre-wrap; + background-color: transparent; + border: 0; +} +.bootstrap .pre-scrollable { + max-height: 340px; + overflow-y: scroll; +} +.bootstrap form { + margin: 0 0 20px; +} +.bootstrap fieldset { + padding: 0; + margin: 0; + border: 0; +} +.bootstrap legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 20px; + font-size: 21px; + line-height: 40px; + color: #333333; + border: 0; + border-bottom: 1px solid #e5e5e5; +} +.bootstrap legend small { + font-size: 15px; + color: #999999; +} +.bootstrap label, +.bootstrap input, +.bootstrap button, +.bootstrap select, +.bootstrap textarea { + font-size: 14px; + font-weight: normal; + line-height: 20px; +} +.bootstrap input, +.bootstrap button, +.bootstrap select, +.bootstrap textarea { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} +.bootstrap label { + display: block; + margin-bottom: 5px; +} +.bootstrap select, +.bootstrap textarea, +.bootstrap input[type="text"], +.bootstrap input[type="password"], +.bootstrap input[type="datetime"], +.bootstrap input[type="datetime-local"], +.bootstrap input[type="date"], +.bootstrap input[type="month"], +.bootstrap input[type="time"], +.bootstrap input[type="week"], +.bootstrap input[type="number"], +.bootstrap input[type="email"], +.bootstrap input[type="url"], +.bootstrap input[type="search"], +.bootstrap input[type="tel"], +.bootstrap input[type="color"], +.bootstrap .uneditable-input { + display: inline-block; + height: 20px; + padding: 4px 6px; + margin-bottom: 10px; + font-size: 14px; + line-height: 20px; + color: #555555; + vertical-align: middle; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap input, +.bootstrap textarea, +.bootstrap .uneditable-input { + width: 206px; +} +.bootstrap textarea { + height: auto; +} +.bootstrap textarea, +.bootstrap input[type="text"], +.bootstrap input[type="password"], +.bootstrap input[type="datetime"], +.bootstrap input[type="datetime-local"], +.bootstrap input[type="date"], +.bootstrap input[type="month"], +.bootstrap input[type="time"], +.bootstrap input[type="week"], +.bootstrap input[type="number"], +.bootstrap input[type="email"], +.bootstrap input[type="url"], +.bootstrap input[type="search"], +.bootstrap input[type="tel"], +.bootstrap input[type="color"], +.bootstrap .uneditable-input { + background-color: #ffffff; + border: 1px solid #cccccc; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; + -moz-transition: border linear 0.2s, box-shadow linear 0.2s; + -o-transition: border linear 0.2s, box-shadow linear 0.2s; + transition: border linear 0.2s, box-shadow linear 0.2s; +} +.bootstrap textarea:focus, +.bootstrap input[type="text"]:focus, +.bootstrap input[type="password"]:focus, +.bootstrap input[type="datetime"]:focus, +.bootstrap input[type="datetime-local"]:focus, +.bootstrap input[type="date"]:focus, +.bootstrap input[type="month"]:focus, +.bootstrap input[type="time"]:focus, +.bootstrap input[type="week"]:focus, +.bootstrap input[type="number"]:focus, +.bootstrap input[type="email"]:focus, +.bootstrap input[type="url"]:focus, +.bootstrap input[type="search"]:focus, +.bootstrap input[type="tel"]:focus, +.bootstrap input[type="color"]:focus, +.bootstrap .uneditable-input:focus { + border-color: rgba(82, 168, 236, 0.8); + outline: 0; + outline: thin dotted \9; + /* IE6-9 */ + + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); +} +.bootstrap input[type="radio"], +.bootstrap input[type="checkbox"] { + margin: 4px 0 0; + margin-top: 1px \9; + *margin-top: 0; + line-height: normal; +} +.bootstrap input[type="file"], +.bootstrap input[type="image"], +.bootstrap input[type="submit"], +.bootstrap input[type="reset"], +.bootstrap input[type="button"], +.bootstrap input[type="radio"], +.bootstrap input[type="checkbox"] { + width: auto; +} +.bootstrap select, +.bootstrap input[type="file"] { + height: 30px; + /* In IE7, the height of the select element cannot be changed by height, only font-size */ + + *margin-top: 4px; + /* For IE7, add top margin to align select with labels */ + + line-height: 30px; +} +.bootstrap select { + width: 220px; + background-color: #ffffff; + border: 1px solid #cccccc; +} +.bootstrap select[multiple], +.bootstrap select[size] { + height: auto; +} +.bootstrap select:focus, +.bootstrap input[type="file"]:focus, +.bootstrap input[type="radio"]:focus, +.bootstrap input[type="checkbox"]:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.bootstrap .uneditable-input, +.bootstrap .uneditable-textarea { + color: #999999; + cursor: not-allowed; + background-color: #fcfcfc; + border-color: #cccccc; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); + -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); +} +.bootstrap .uneditable-input { + overflow: hidden; + white-space: nowrap; +} +.bootstrap .uneditable-textarea { + width: auto; + height: auto; +} +.bootstrap input:-moz-placeholder, +.bootstrap textarea:-moz-placeholder { + color: #999999; +} +.bootstrap input:-ms-input-placeholder, +.bootstrap textarea:-ms-input-placeholder { + color: #999999; +} +.bootstrap input::-webkit-input-placeholder, +.bootstrap textarea::-webkit-input-placeholder { + color: #999999; +} +.bootstrap .radio, +.bootstrap .checkbox { + min-height: 20px; + padding-left: 20px; +} +.bootstrap .radio input[type="radio"], +.bootstrap .checkbox input[type="checkbox"] { + float: left; + margin-left: -20px; +} +.bootstrap .controls > .radio:first-child, +.bootstrap .controls > .checkbox:first-child { + padding-top: 5px; +} +.bootstrap .radio.inline, +.bootstrap .checkbox.inline { + display: inline-block; + padding-top: 5px; + margin-bottom: 0; + vertical-align: middle; +} +.bootstrap .radio.inline + .radio.inline, +.bootstrap .checkbox.inline + .checkbox.inline { + margin-left: 10px; +} +.bootstrap .input-mini { + width: 60px; +} +.bootstrap .input-small { + width: 90px; +} +.bootstrap .input-medium { + width: 150px; +} +.bootstrap .input-large { + width: 210px; +} +.bootstrap .input-xlarge { + width: 270px; +} +.bootstrap .input-xxlarge { + width: 530px; +} +.bootstrap input[class*="span"], +.bootstrap select[class*="span"], +.bootstrap textarea[class*="span"], +.bootstrap .uneditable-input[class*="span"], +.bootstrap .row-fluid input[class*="span"], +.bootstrap .row-fluid select[class*="span"], +.bootstrap .row-fluid textarea[class*="span"], +.bootstrap .row-fluid .uneditable-input[class*="span"] { + float: none; + margin-left: 0; +} +.bootstrap .input-append input[class*="span"], +.bootstrap .input-append .uneditable-input[class*="span"], +.bootstrap .input-prepend input[class*="span"], +.bootstrap .input-prepend .uneditable-input[class*="span"], +.bootstrap .row-fluid input[class*="span"], +.bootstrap .row-fluid select[class*="span"], +.bootstrap .row-fluid textarea[class*="span"], +.bootstrap .row-fluid .uneditable-input[class*="span"], +.bootstrap .row-fluid .input-prepend [class*="span"], +.bootstrap .row-fluid .input-append [class*="span"] { + display: inline-block; +} +.bootstrap input, +.bootstrap textarea, +.bootstrap .uneditable-input { + margin-left: 0; +} +.bootstrap .controls-row [class*="span"] + [class*="span"] { + margin-left: 20px; +} +.bootstrap input.span12, +.bootstrap textarea.span12, +.bootstrap .uneditable-input.span12 { + width: 926px; +} +.bootstrap input.span11, +.bootstrap textarea.span11, +.bootstrap .uneditable-input.span11 { + width: 846px; +} +.bootstrap input.span10, +.bootstrap textarea.span10, +.bootstrap .uneditable-input.span10 { + width: 766px; +} +.bootstrap input.span9, +.bootstrap textarea.span9, +.bootstrap .uneditable-input.span9 { + width: 686px; +} +.bootstrap input.span8, +.bootstrap textarea.span8, +.bootstrap .uneditable-input.span8 { + width: 606px; +} +.bootstrap input.span7, +.bootstrap textarea.span7, +.bootstrap .uneditable-input.span7 { + width: 526px; +} +.bootstrap input.span6, +.bootstrap textarea.span6, +.bootstrap .uneditable-input.span6 { + width: 446px; +} +.bootstrap input.span5, +.bootstrap textarea.span5, +.bootstrap .uneditable-input.span5 { + width: 366px; +} +.bootstrap input.span4, +.bootstrap textarea.span4, +.bootstrap .uneditable-input.span4 { + width: 286px; +} +.bootstrap input.span3, +.bootstrap textarea.span3, +.bootstrap .uneditable-input.span3 { + width: 206px; +} +.bootstrap input.span2, +.bootstrap textarea.span2, +.bootstrap .uneditable-input.span2 { + width: 126px; +} +.bootstrap input.span1, +.bootstrap textarea.span1, +.bootstrap .uneditable-input.span1 { + width: 46px; +} +.bootstrap .controls-row { + *zoom: 1; +} +.bootstrap .controls-row:before, +.bootstrap .controls-row:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .controls-row:after { + clear: both; +} +.bootstrap .controls-row [class*="span"], +.bootstrap .row-fluid .controls-row [class*="span"] { + float: left; +} +.bootstrap .controls-row .checkbox[class*="span"], +.bootstrap .controls-row .radio[class*="span"] { + padding-top: 5px; +} +.bootstrap input[disabled], +.bootstrap select[disabled], +.bootstrap textarea[disabled], +.bootstrap input[readonly], +.bootstrap select[readonly], +.bootstrap textarea[readonly] { + cursor: not-allowed; + background-color: #eeeeee; +} +.bootstrap input[type="radio"][disabled], +.bootstrap input[type="checkbox"][disabled], +.bootstrap input[type="radio"][readonly], +.bootstrap input[type="checkbox"][readonly] { + background-color: transparent; +} +.bootstrap .control-group.warning .control-label, +.bootstrap .control-group.warning .help-block, +.bootstrap .control-group.warning .help-inline { + color: #c09853; +} +.bootstrap .control-group.warning .checkbox, +.bootstrap .control-group.warning .radio, +.bootstrap .control-group.warning input, +.bootstrap .control-group.warning select, +.bootstrap .control-group.warning textarea { + color: #c09853; +} +.bootstrap .control-group.warning input, +.bootstrap .control-group.warning select, +.bootstrap .control-group.warning textarea { + border-color: #c09853; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.bootstrap .control-group.warning input:focus, +.bootstrap .control-group.warning select:focus, +.bootstrap .control-group.warning textarea:focus { + border-color: #a47e3c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; +} +.bootstrap .control-group.warning .input-prepend .add-on, +.bootstrap .control-group.warning .input-append .add-on { + color: #c09853; + background-color: #fcf8e3; + border-color: #c09853; +} +.bootstrap .control-group.error .control-label, +.bootstrap .control-group.error .help-block, +.bootstrap .control-group.error .help-inline { + color: #b94a48; +} +.bootstrap .control-group.error .checkbox, +.bootstrap .control-group.error .radio, +.bootstrap .control-group.error input, +.bootstrap .control-group.error select, +.bootstrap .control-group.error textarea { + color: #b94a48; +} +.bootstrap .control-group.error input, +.bootstrap .control-group.error select, +.bootstrap .control-group.error textarea { + border-color: #b94a48; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.bootstrap .control-group.error input:focus, +.bootstrap .control-group.error select:focus, +.bootstrap .control-group.error textarea:focus { + border-color: #953b39; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; +} +.bootstrap .control-group.error .input-prepend .add-on, +.bootstrap .control-group.error .input-append .add-on { + color: #b94a48; + background-color: #f2dede; + border-color: #b94a48; +} +.bootstrap .control-group.success .control-label, +.bootstrap .control-group.success .help-block, +.bootstrap .control-group.success .help-inline { + color: #468847; +} +.bootstrap .control-group.success .checkbox, +.bootstrap .control-group.success .radio, +.bootstrap .control-group.success input, +.bootstrap .control-group.success select, +.bootstrap .control-group.success textarea { + color: #468847; +} +.bootstrap .control-group.success input, +.bootstrap .control-group.success select, +.bootstrap .control-group.success textarea { + border-color: #468847; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.bootstrap .control-group.success input:focus, +.bootstrap .control-group.success select:focus, +.bootstrap .control-group.success textarea:focus { + border-color: #356635; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; +} +.bootstrap .control-group.success .input-prepend .add-on, +.bootstrap .control-group.success .input-append .add-on { + color: #468847; + background-color: #dff0d8; + border-color: #468847; +} +.bootstrap .control-group.info .control-label, +.bootstrap .control-group.info .help-block, +.bootstrap .control-group.info .help-inline { + color: #3a87ad; +} +.bootstrap .control-group.info .checkbox, +.bootstrap .control-group.info .radio, +.bootstrap .control-group.info input, +.bootstrap .control-group.info select, +.bootstrap .control-group.info textarea { + color: #3a87ad; +} +.bootstrap .control-group.info input, +.bootstrap .control-group.info select, +.bootstrap .control-group.info textarea { + border-color: #3a87ad; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.bootstrap .control-group.info input:focus, +.bootstrap .control-group.info select:focus, +.bootstrap .control-group.info textarea:focus { + border-color: #2d6987; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; +} +.bootstrap .control-group.info .input-prepend .add-on, +.bootstrap .control-group.info .input-append .add-on { + color: #3a87ad; + background-color: #d9edf7; + border-color: #3a87ad; +} +.bootstrap input:focus:invalid, +.bootstrap textarea:focus:invalid, +.bootstrap select:focus:invalid { + color: #b94a48; + border-color: #ee5f5b; +} +.bootstrap input:focus:invalid:focus, +.bootstrap textarea:focus:invalid:focus, +.bootstrap select:focus:invalid:focus { + border-color: #e9322d; + -webkit-box-shadow: 0 0 6px #f8b9b7; + -moz-box-shadow: 0 0 6px #f8b9b7; + box-shadow: 0 0 6px #f8b9b7; +} +.bootstrap .form-actions { + padding: 19px 20px 20px; + margin-top: 20px; + margin-bottom: 20px; + background-color: #f5f5f5; + border-top: 1px solid #e5e5e5; + *zoom: 1; +} +.bootstrap .form-actions:before, +.bootstrap .form-actions:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .form-actions:after { + clear: both; +} +.bootstrap .help-block, +.bootstrap .help-inline { + color: #595959; +} +.bootstrap .help-block { + display: block; + margin-bottom: 10px; +} +.bootstrap .help-inline { + display: inline-block; + *display: inline; + padding-left: 5px; + vertical-align: middle; + *zoom: 1; +} +.bootstrap .input-append, +.bootstrap .input-prepend { + display: inline-block; + margin-bottom: 10px; + font-size: 0; + white-space: nowrap; + vertical-align: middle; +} +.bootstrap .input-append input, +.bootstrap .input-prepend input, +.bootstrap .input-append select, +.bootstrap .input-prepend select, +.bootstrap .input-append .uneditable-input, +.bootstrap .input-prepend .uneditable-input, +.bootstrap .input-append .dropdown-menu, +.bootstrap .input-prepend .dropdown-menu, +.bootstrap .input-append .popover, +.bootstrap .input-prepend .popover { + font-size: 14px; +} +.bootstrap .input-append input, +.bootstrap .input-prepend input, +.bootstrap .input-append select, +.bootstrap .input-prepend select, +.bootstrap .input-append .uneditable-input, +.bootstrap .input-prepend .uneditable-input { + position: relative; + margin-bottom: 0; + *margin-left: 0; + vertical-align: top; + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} +.bootstrap .input-append input:focus, +.bootstrap .input-prepend input:focus, +.bootstrap .input-append select:focus, +.bootstrap .input-prepend select:focus, +.bootstrap .input-append .uneditable-input:focus, +.bootstrap .input-prepend .uneditable-input:focus { + z-index: 2; +} +.bootstrap .input-append .add-on, +.bootstrap .input-prepend .add-on { + display: inline-block; + width: auto; + height: 20px; + min-width: 16px; + padding: 4px 5px; + font-size: 14px; + font-weight: normal; + line-height: 20px; + text-align: center; + text-shadow: 0 1px 0 #ffffff; + background-color: #eeeeee; + border: 1px solid #ccc; +} +.bootstrap .input-append .add-on, +.bootstrap .input-prepend .add-on, +.bootstrap .input-append .btn, +.bootstrap .input-prepend .btn, +.bootstrap .input-append .btn-group > .dropdown-toggle, +.bootstrap .input-prepend .btn-group > .dropdown-toggle { + vertical-align: top; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .input-append .active, +.bootstrap .input-prepend .active { + background-color: #a9dba9; + border-color: #46a546; +} +.bootstrap .input-prepend .add-on, +.bootstrap .input-prepend .btn { + margin-right: -1px; +} +.bootstrap .input-prepend .add-on:first-child, +.bootstrap .input-prepend .btn:first-child { + -webkit-border-radius: 4px 0 0 4px; + -moz-border-radius: 4px 0 0 4px; + border-radius: 4px 0 0 4px; +} +.bootstrap .input-append input, +.bootstrap .input-append select, +.bootstrap .input-append .uneditable-input { + -webkit-border-radius: 4px 0 0 4px; + -moz-border-radius: 4px 0 0 4px; + border-radius: 4px 0 0 4px; +} +.bootstrap .input-append input + .btn-group .btn:last-child, +.bootstrap .input-append select + .btn-group .btn:last-child, +.bootstrap .input-append .uneditable-input + .btn-group .btn:last-child { + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} +.bootstrap .input-append .add-on, +.bootstrap .input-append .btn, +.bootstrap .input-append .btn-group { + margin-left: -1px; +} +.bootstrap .input-append .add-on:last-child, +.bootstrap .input-append .btn:last-child, +.bootstrap .input-append .btn-group:last-child > .dropdown-toggle { + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} +.bootstrap .input-prepend.input-append input, +.bootstrap .input-prepend.input-append select, +.bootstrap .input-prepend.input-append .uneditable-input { + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .input-prepend.input-append input + .btn-group .btn, +.bootstrap .input-prepend.input-append select + .btn-group .btn, +.bootstrap .input-prepend.input-append .uneditable-input + .btn-group .btn { + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} +.bootstrap .input-prepend.input-append .add-on:first-child, +.bootstrap .input-prepend.input-append .btn:first-child { + margin-right: -1px; + -webkit-border-radius: 4px 0 0 4px; + -moz-border-radius: 4px 0 0 4px; + border-radius: 4px 0 0 4px; +} +.bootstrap .input-prepend.input-append .add-on:last-child, +.bootstrap .input-prepend.input-append .btn:last-child { + margin-left: -1px; + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} +.bootstrap .input-prepend.input-append .btn-group:first-child { + margin-left: 0; +} +.bootstrap input.search-query { + padding-right: 14px; + padding-right: 4px \9; + padding-left: 14px; + padding-left: 4px \9; + /* IE7-8 doesn't have border-radius, so don't indent the padding */ + + margin-bottom: 0; + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; +} +.bootstrap .form-search .input-append .search-query, +.bootstrap .form-search .input-prepend .search-query { + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .form-search .input-append .search-query { + -webkit-border-radius: 14px 0 0 14px; + -moz-border-radius: 14px 0 0 14px; + border-radius: 14px 0 0 14px; +} +.bootstrap .form-search .input-append .btn { + -webkit-border-radius: 0 14px 14px 0; + -moz-border-radius: 0 14px 14px 0; + border-radius: 0 14px 14px 0; +} +.bootstrap .form-search .input-prepend .search-query { + -webkit-border-radius: 0 14px 14px 0; + -moz-border-radius: 0 14px 14px 0; + border-radius: 0 14px 14px 0; +} +.bootstrap .form-search .input-prepend .btn { + -webkit-border-radius: 14px 0 0 14px; + -moz-border-radius: 14px 0 0 14px; + border-radius: 14px 0 0 14px; +} +.bootstrap .form-search input, +.bootstrap .form-inline input, +.bootstrap .form-horizontal input, +.bootstrap .form-search textarea, +.bootstrap .form-inline textarea, +.bootstrap .form-horizontal textarea, +.bootstrap .form-search select, +.bootstrap .form-inline select, +.bootstrap .form-horizontal select, +.bootstrap .form-search .help-inline, +.bootstrap .form-inline .help-inline, +.bootstrap .form-horizontal .help-inline, +.bootstrap .form-search .uneditable-input, +.bootstrap .form-inline .uneditable-input, +.bootstrap .form-horizontal .uneditable-input, +.bootstrap .form-search .input-prepend, +.bootstrap .form-inline .input-prepend, +.bootstrap .form-horizontal .input-prepend, +.bootstrap .form-search .input-append, +.bootstrap .form-inline .input-append, +.bootstrap .form-horizontal .input-append { + display: inline-block; + *display: inline; + margin-bottom: 0; + vertical-align: middle; + *zoom: 1; +} +.bootstrap .form-search .hide, +.bootstrap .form-inline .hide, +.bootstrap .form-horizontal .hide { + display: none; +} +.bootstrap .form-search label, +.bootstrap .form-inline label, +.bootstrap .form-search .btn-group, +.bootstrap .form-inline .btn-group { + display: inline-block; +} +.bootstrap .form-search .input-append, +.bootstrap .form-inline .input-append, +.bootstrap .form-search .input-prepend, +.bootstrap .form-inline .input-prepend { + margin-bottom: 0; +} +.bootstrap .form-search .radio, +.bootstrap .form-search .checkbox, +.bootstrap .form-inline .radio, +.bootstrap .form-inline .checkbox { + padding-left: 0; + margin-bottom: 0; + vertical-align: middle; +} +.bootstrap .form-search .radio input[type="radio"], +.bootstrap .form-search .checkbox input[type="checkbox"], +.bootstrap .form-inline .radio input[type="radio"], +.bootstrap .form-inline .checkbox input[type="checkbox"] { + float: left; + margin-right: 3px; + margin-left: 0; +} +.bootstrap .control-group { + margin-bottom: 10px; +} +.bootstrap legend + .control-group { + margin-top: 20px; + -webkit-margin-top-collapse: separate; +} +.bootstrap .form-horizontal .control-group { + margin-bottom: 20px; + *zoom: 1; +} +.bootstrap .form-horizontal .control-group:before, +.bootstrap .form-horizontal .control-group:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .form-horizontal .control-group:after { + clear: both; +} +.bootstrap .form-horizontal .control-label { + float: left; + width: 160px; + padding-top: 5px; + text-align: right; +} +.bootstrap .form-horizontal .controls { + *display: inline-block; + *padding-left: 20px; + margin-left: 180px; + *margin-left: 0; +} +.bootstrap .form-horizontal .controls:first-child { + *padding-left: 180px; +} +.bootstrap .form-horizontal .help-block { + margin-bottom: 0; +} +.bootstrap .form-horizontal input + .help-block, +.bootstrap .form-horizontal select + .help-block, +.bootstrap .form-horizontal textarea + .help-block, +.bootstrap .form-horizontal .uneditable-input + .help-block, +.bootstrap .form-horizontal .input-prepend + .help-block, +.bootstrap .form-horizontal .input-append + .help-block { + margin-top: 10px; +} +.bootstrap .form-horizontal .form-actions { + padding-left: 180px; +} +.bootstrap table { + max-width: 100%; + background-color: transparent; + border-collapse: collapse; + border-spacing: 0; +} +.bootstrap .table { + width: 100%; + margin-bottom: 20px; +} +.bootstrap .table th, +.bootstrap .table td { + padding: 8px; + line-height: 20px; + text-align: left; + vertical-align: top; + border-top: 1px solid #dddddd; +} +.bootstrap .table th { + font-weight: bold; +} +.bootstrap .table thead th { + vertical-align: bottom; +} +.bootstrap .table caption + thead tr:first-child th, +.bootstrap .table caption + thead tr:first-child td, +.bootstrap .table colgroup + thead tr:first-child th, +.bootstrap .table colgroup + thead tr:first-child td, +.bootstrap .table thead:first-child tr:first-child th, +.bootstrap .table thead:first-child tr:first-child td { + border-top: 0; +} +.bootstrap .table tbody + tbody { + border-top: 2px solid #dddddd; +} +.bootstrap .table .table { + background-color: #ffffff; +} +.bootstrap .table-condensed th, +.bootstrap .table-condensed td { + padding: 4px 5px; +} +.bootstrap .table-bordered { + border: 1px solid #dddddd; + border-collapse: separate; + *border-collapse: collapse; + border-left: 0; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap .table-bordered th, +.bootstrap .table-bordered td { + border-left: 1px solid #dddddd; +} +.bootstrap .table-bordered caption + thead tr:first-child th, +.bootstrap .table-bordered caption + tbody tr:first-child th, +.bootstrap .table-bordered caption + tbody tr:first-child td, +.bootstrap .table-bordered colgroup + thead tr:first-child th, +.bootstrap .table-bordered colgroup + tbody tr:first-child th, +.bootstrap .table-bordered colgroup + tbody tr:first-child td, +.bootstrap .table-bordered thead:first-child tr:first-child th, +.bootstrap .table-bordered tbody:first-child tr:first-child th, +.bootstrap .table-bordered tbody:first-child tr:first-child td { + border-top: 0; +} +.bootstrap .table-bordered thead:first-child tr:first-child > th:first-child, +.bootstrap .table-bordered tbody:first-child tr:first-child > td:first-child, +.bootstrap .table-bordered tbody:first-child tr:first-child > th:first-child { + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; +} +.bootstrap .table-bordered thead:first-child tr:first-child > th:last-child, +.bootstrap .table-bordered tbody:first-child tr:first-child > td:last-child, +.bootstrap .table-bordered tbody:first-child tr:first-child > th:last-child { + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; + -moz-border-radius-topright: 4px; +} +.bootstrap .table-bordered thead:last-child tr:last-child > th:first-child, +.bootstrap .table-bordered tbody:last-child tr:last-child > td:first-child, +.bootstrap .table-bordered tbody:last-child tr:last-child > th:first-child, +.bootstrap .table-bordered tfoot:last-child tr:last-child > td:first-child, +.bootstrap .table-bordered tfoot:last-child tr:last-child > th:first-child { + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; +} +.bootstrap .table-bordered thead:last-child tr:last-child > th:last-child, +.bootstrap .table-bordered tbody:last-child tr:last-child > td:last-child, +.bootstrap .table-bordered tbody:last-child tr:last-child > th:last-child, +.bootstrap .table-bordered tfoot:last-child tr:last-child > td:last-child, +.bootstrap .table-bordered tfoot:last-child tr:last-child > th:last-child { + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; + -moz-border-radius-bottomright: 4px; +} +.bootstrap .table-bordered tfoot + tbody:last-child tr:last-child td:first-child { + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + -moz-border-radius-bottomleft: 0; +} +.bootstrap .table-bordered tfoot + tbody:last-child tr:last-child td:last-child { + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomright: 0; +} +.bootstrap .table-bordered caption + thead tr:first-child th:first-child, +.bootstrap .table-bordered caption + tbody tr:first-child td:first-child, +.bootstrap .table-bordered colgroup + thead tr:first-child th:first-child, +.bootstrap .table-bordered colgroup + tbody tr:first-child td:first-child { + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; +} +.bootstrap .table-bordered caption + thead tr:first-child th:last-child, +.bootstrap .table-bordered caption + tbody tr:first-child td:last-child, +.bootstrap .table-bordered colgroup + thead tr:first-child th:last-child, +.bootstrap .table-bordered colgroup + tbody tr:first-child td:last-child { + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; + -moz-border-radius-topright: 4px; +} +.bootstrap .table-striped tbody > tr:nth-child(odd) > td, +.bootstrap .table-striped tbody > tr:nth-child(odd) > th { + background-color: #f9f9f9; +} +.bootstrap .table-hover tbody tr:hover > td, +.bootstrap .table-hover tbody tr:hover > th { + background-color: #f5f5f5; +} +.bootstrap table td[class*="span"], +.bootstrap table th[class*="span"], +.bootstrap .row-fluid table td[class*="span"], +.bootstrap .row-fluid table th[class*="span"] { + display: table-cell; + float: none; + margin-left: 0; +} +.bootstrap .table td.span1, +.bootstrap .table th.span1 { + float: none; + width: 44px; + margin-left: 0; +} +.bootstrap .table td.span2, +.bootstrap .table th.span2 { + float: none; + width: 124px; + margin-left: 0; +} +.bootstrap .table td.span3, +.bootstrap .table th.span3 { + float: none; + width: 204px; + margin-left: 0; +} +.bootstrap .table td.span4, +.bootstrap .table th.span4 { + float: none; + width: 284px; + margin-left: 0; +} +.bootstrap .table td.span5, +.bootstrap .table th.span5 { + float: none; + width: 364px; + margin-left: 0; +} +.bootstrap .table td.span6, +.bootstrap .table th.span6 { + float: none; + width: 444px; + margin-left: 0; +} +.bootstrap .table td.span7, +.bootstrap .table th.span7 { + float: none; + width: 524px; + margin-left: 0; +} +.bootstrap .table td.span8, +.bootstrap .table th.span8 { + float: none; + width: 604px; + margin-left: 0; +} +.bootstrap .table td.span9, +.bootstrap .table th.span9 { + float: none; + width: 684px; + margin-left: 0; +} +.bootstrap .table td.span10, +.bootstrap .table th.span10 { + float: none; + width: 764px; + margin-left: 0; +} +.bootstrap .table td.span11, +.bootstrap .table th.span11 { + float: none; + width: 844px; + margin-left: 0; +} +.bootstrap .table td.span12, +.bootstrap .table th.span12 { + float: none; + width: 924px; + margin-left: 0; +} +.bootstrap .table tbody tr.success > td { + background-color: #dff0d8; +} +.bootstrap .table tbody tr.error > td { + background-color: #f2dede; +} +.bootstrap .table tbody tr.warning > td { + background-color: #fcf8e3; +} +.bootstrap .table tbody tr.info > td { + background-color: #d9edf7; +} +.bootstrap .table-hover tbody tr.success:hover > td { + background-color: #d0e9c6; +} +.bootstrap .table-hover tbody tr.error:hover > td { + background-color: #ebcccc; +} +.bootstrap .table-hover tbody tr.warning:hover > td { + background-color: #faf2cc; +} +.bootstrap .table-hover tbody tr.info:hover > td { + background-color: #c4e3f3; +} +.bootstrap [class^="icon-"], +.bootstrap [class*=" icon-"] { + display: inline-block; + width: 14px; + height: 14px; + margin-top: 1px; + *margin-right: .3em; + line-height: 14px; + vertical-align: text-top; + background-image: url("../img/glyphicons-halflings.png"); + background-position: 14px 14px; + background-repeat: no-repeat; +} +.bootstrap .icon-white, +.bootstrap .nav-pills > .active > a > [class^="icon-"], +.bootstrap .nav-pills > .active > a > [class*=" icon-"], +.bootstrap .nav-list > .active > a > [class^="icon-"], +.bootstrap .nav-list > .active > a > [class*=" icon-"], +.bootstrap .navbar-inverse .nav > .active > a > [class^="icon-"], +.bootstrap .navbar-inverse .nav > .active > a > [class*=" icon-"], +.bootstrap .dropdown-menu > li > a:hover > [class^="icon-"], +.bootstrap .dropdown-menu > li > a:focus > [class^="icon-"], +.bootstrap .dropdown-menu > li > a:hover > [class*=" icon-"], +.bootstrap .dropdown-menu > li > a:focus > [class*=" icon-"], +.bootstrap .dropdown-menu > .active > a > [class^="icon-"], +.bootstrap .dropdown-menu > .active > a > [class*=" icon-"], +.bootstrap .dropdown-submenu:hover > a > [class^="icon-"], +.bootstrap .dropdown-submenu:focus > a > [class^="icon-"], +.bootstrap .dropdown-submenu:hover > a > [class*=" icon-"], +.bootstrap .dropdown-submenu:focus > a > [class*=" icon-"] { + background-image: url("../img/glyphicons-halflings-white.png"); +} +.bootstrap .icon-glass { + background-position: 0 0; +} +.bootstrap .icon-music { + background-position: -24px 0; +} +.bootstrap .icon-search { + background-position: -48px 0; +} +.bootstrap .icon-envelope { + background-position: -72px 0; +} +.bootstrap .icon-heart { + background-position: -96px 0; +} +.bootstrap .icon-star { + background-position: -120px 0; +} +.bootstrap .icon-star-empty { + background-position: -144px 0; +} +.bootstrap .icon-user { + background-position: -168px 0; +} +.bootstrap .icon-film { + background-position: -192px 0; +} +.bootstrap .icon-th-large { + background-position: -216px 0; +} +.bootstrap .icon-th { + background-position: -240px 0; +} +.bootstrap .icon-th-list { + background-position: -264px 0; +} +.bootstrap .icon-ok { + background-position: -288px 0; +} +.bootstrap .icon-remove { + background-position: -312px 0; +} +.bootstrap .icon-zoom-in { + background-position: -336px 0; +} +.bootstrap .icon-zoom-out { + background-position: -360px 0; +} +.bootstrap .icon-off { + background-position: -384px 0; +} +.bootstrap .icon-signal { + background-position: -408px 0; +} +.bootstrap .icon-cog { + background-position: -432px 0; +} +.bootstrap .icon-trash { + background-position: -456px 0; +} +.bootstrap .icon-home { + background-position: 0 -24px; +} +.bootstrap .icon-file { + background-position: -24px -24px; +} +.bootstrap .icon-time { + background-position: -48px -24px; +} +.bootstrap .icon-road { + background-position: -72px -24px; +} +.bootstrap .icon-download-alt { + background-position: -96px -24px; +} +.bootstrap .icon-download { + background-position: -120px -24px; +} +.bootstrap .icon-upload { + background-position: -144px -24px; +} +.bootstrap .icon-inbox { + background-position: -168px -24px; +} +.bootstrap .icon-play-circle { + background-position: -192px -24px; +} +.bootstrap .icon-repeat { + background-position: -216px -24px; +} +.bootstrap .icon-refresh { + background-position: -240px -24px; +} +.bootstrap .icon-list-alt { + background-position: -264px -24px; +} +.bootstrap .icon-lock { + background-position: -287px -24px; +} +.bootstrap .icon-flag { + background-position: -312px -24px; +} +.bootstrap .icon-headphones { + background-position: -336px -24px; +} +.bootstrap .icon-volume-off { + background-position: -360px -24px; +} +.bootstrap .icon-volume-down { + background-position: -384px -24px; +} +.bootstrap .icon-volume-up { + background-position: -408px -24px; +} +.bootstrap .icon-qrcode { + background-position: -432px -24px; +} +.bootstrap .icon-barcode { + background-position: -456px -24px; +} +.bootstrap .icon-tag { + background-position: 0 -48px; +} +.bootstrap .icon-tags { + background-position: -25px -48px; +} +.bootstrap .icon-book { + background-position: -48px -48px; +} +.bootstrap .icon-bookmark { + background-position: -72px -48px; +} +.bootstrap .icon-print { + background-position: -96px -48px; +} +.bootstrap .icon-camera { + background-position: -120px -48px; +} +.bootstrap .icon-font { + background-position: -144px -48px; +} +.bootstrap .icon-bold { + background-position: -167px -48px; +} +.bootstrap .icon-italic { + background-position: -192px -48px; +} +.bootstrap .icon-text-height { + background-position: -216px -48px; +} +.bootstrap .icon-text-width { + background-position: -240px -48px; +} +.bootstrap .icon-align-left { + background-position: -264px -48px; +} +.bootstrap .icon-align-center { + background-position: -288px -48px; +} +.bootstrap .icon-align-right { + background-position: -312px -48px; +} +.bootstrap .icon-align-justify { + background-position: -336px -48px; +} +.bootstrap .icon-list { + background-position: -360px -48px; +} +.bootstrap .icon-indent-left { + background-position: -384px -48px; +} +.bootstrap .icon-indent-right { + background-position: -408px -48px; +} +.bootstrap .icon-facetime-video { + background-position: -432px -48px; +} +.bootstrap .icon-picture { + background-position: -456px -48px; +} +.bootstrap .icon-pencil { + background-position: 0 -72px; +} +.bootstrap .icon-map-marker { + background-position: -24px -72px; +} +.bootstrap .icon-adjust { + background-position: -48px -72px; +} +.bootstrap .icon-tint { + background-position: -72px -72px; +} +.bootstrap .icon-edit { + background-position: -96px -72px; +} +.bootstrap .icon-share { + background-position: -120px -72px; +} +.bootstrap .icon-check { + background-position: -144px -72px; +} +.bootstrap .icon-move { + background-position: -168px -72px; +} +.bootstrap .icon-step-backward { + background-position: -192px -72px; +} +.bootstrap .icon-fast-backward { + background-position: -216px -72px; +} +.bootstrap .icon-backward { + background-position: -240px -72px; +} +.bootstrap .icon-play { + background-position: -264px -72px; +} +.bootstrap .icon-pause { + background-position: -288px -72px; +} +.bootstrap .icon-stop { + background-position: -312px -72px; +} +.bootstrap .icon-forward { + background-position: -336px -72px; +} +.bootstrap .icon-fast-forward { + background-position: -360px -72px; +} +.bootstrap .icon-step-forward { + background-position: -384px -72px; +} +.bootstrap .icon-eject { + background-position: -408px -72px; +} +.bootstrap .icon-chevron-left { + background-position: -432px -72px; +} +.bootstrap .icon-chevron-right { + background-position: -456px -72px; +} +.bootstrap .icon-plus-sign { + background-position: 0 -96px; +} +.bootstrap .icon-minus-sign { + background-position: -24px -96px; +} +.bootstrap .icon-remove-sign { + background-position: -48px -96px; +} +.bootstrap .icon-ok-sign { + background-position: -72px -96px; +} +.bootstrap .icon-question-sign { + background-position: -96px -96px; +} +.bootstrap .icon-info-sign { + background-position: -120px -96px; +} +.bootstrap .icon-screenshot { + background-position: -144px -96px; +} +.bootstrap .icon-remove-circle { + background-position: -168px -96px; +} +.bootstrap .icon-ok-circle { + background-position: -192px -96px; +} +.bootstrap .icon-ban-circle { + background-position: -216px -96px; +} +.bootstrap .icon-arrow-left { + background-position: -240px -96px; +} +.bootstrap .icon-arrow-right { + background-position: -264px -96px; +} +.bootstrap .icon-arrow-up { + background-position: -289px -96px; +} +.bootstrap .icon-arrow-down { + background-position: -312px -96px; +} +.bootstrap .icon-share-alt { + background-position: -336px -96px; +} +.bootstrap .icon-resize-full { + background-position: -360px -96px; +} +.bootstrap .icon-resize-small { + background-position: -384px -96px; +} +.bootstrap .icon-plus { + background-position: -408px -96px; +} +.bootstrap .icon-minus { + background-position: -433px -96px; +} +.bootstrap .icon-asterisk { + background-position: -456px -96px; +} +.bootstrap .icon-exclamation-sign { + background-position: 0 -120px; +} +.bootstrap .icon-gift { + background-position: -24px -120px; +} +.bootstrap .icon-leaf { + background-position: -48px -120px; +} +.bootstrap .icon-fire { + background-position: -72px -120px; +} +.bootstrap .icon-eye-open { + background-position: -96px -120px; +} +.bootstrap .icon-eye-close { + background-position: -120px -120px; +} +.bootstrap .icon-warning-sign { + background-position: -144px -120px; +} +.bootstrap .icon-plane { + background-position: -168px -120px; +} +.bootstrap .icon-calendar { + background-position: -192px -120px; +} +.bootstrap .icon-random { + width: 16px; + background-position: -216px -120px; +} +.bootstrap .icon-comment { + background-position: -240px -120px; +} +.bootstrap .icon-magnet { + background-position: -264px -120px; +} +.bootstrap .icon-chevron-up { + background-position: -288px -120px; +} +.bootstrap .icon-chevron-down { + background-position: -313px -119px; +} +.bootstrap .icon-retweet { + background-position: -336px -120px; +} +.bootstrap .icon-shopping-cart { + background-position: -360px -120px; +} +.bootstrap .icon-folder-close { + width: 16px; + background-position: -384px -120px; +} +.bootstrap .icon-folder-open { + width: 16px; + background-position: -408px -120px; +} +.bootstrap .icon-resize-vertical { + background-position: -432px -119px; +} +.bootstrap .icon-resize-horizontal { + background-position: -456px -118px; +} +.bootstrap .icon-hdd { + background-position: 0 -144px; +} +.bootstrap .icon-bullhorn { + background-position: -24px -144px; +} +.bootstrap .icon-bell { + background-position: -48px -144px; +} +.bootstrap .icon-certificate { + background-position: -72px -144px; +} +.bootstrap .icon-thumbs-up { + background-position: -96px -144px; +} +.bootstrap .icon-thumbs-down { + background-position: -120px -144px; +} +.bootstrap .icon-hand-right { + background-position: -144px -144px; +} +.bootstrap .icon-hand-left { + background-position: -168px -144px; +} +.bootstrap .icon-hand-up { + background-position: -192px -144px; +} +.bootstrap .icon-hand-down { + background-position: -216px -144px; +} +.bootstrap .icon-circle-arrow-right { + background-position: -240px -144px; +} +.bootstrap .icon-circle-arrow-left { + background-position: -264px -144px; +} +.bootstrap .icon-circle-arrow-up { + background-position: -288px -144px; +} +.bootstrap .icon-circle-arrow-down { + background-position: -312px -144px; +} +.bootstrap .icon-globe { + background-position: -336px -144px; +} +.bootstrap .icon-wrench { + background-position: -360px -144px; +} +.bootstrap .icon-tasks { + background-position: -384px -144px; +} +.bootstrap .icon-filter { + background-position: -408px -144px; +} +.bootstrap .icon-briefcase { + background-position: -432px -144px; +} +.bootstrap .icon-fullscreen { + background-position: -456px -144px; +} +.bootstrap .dropup, +.bootstrap .dropdown { + position: relative; +} +.bootstrap .dropdown-toggle { + *margin-bottom: -3px; +} +.bootstrap .dropdown-toggle:active, +.bootstrap .open .dropdown-toggle { + outline: 0; +} +.bootstrap .caret { + display: inline-block; + width: 0; + height: 0; + vertical-align: top; + border-top: 4px solid #000000; + border-right: 4px solid transparent; + border-left: 4px solid transparent; + content: ""; +} +.bootstrap .dropdown .caret { + margin-top: 8px; + margin-left: 2px; +} +.bootstrap .dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + list-style: none; + background-color: #ffffff; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.2); + *border-right-width: 2px; + *border-bottom-width: 2px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + -webkit-background-clip: padding-box; + -moz-background-clip: padding; + background-clip: padding-box; +} +.bootstrap .dropdown-menu.pull-right { + right: 0; + left: auto; +} +.bootstrap .dropdown-menu .divider { + *width: 100%; + height: 1px; + margin: 9px 1px; + *margin: -5px 0 5px; + overflow: hidden; + background-color: #e5e5e5; + border-bottom: 1px solid #ffffff; +} +.bootstrap .dropdown-menu > li > a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 20px; + color: #333333; + white-space: nowrap; +} +.bootstrap .dropdown-menu > li > a:hover, +.bootstrap .dropdown-menu > li > a:focus, +.bootstrap .dropdown-submenu:hover > a, +.bootstrap .dropdown-submenu:focus > a { + color: #ffffff; + text-decoration: none; + background-color: #0081c2; + background-image: -moz-linear-gradient(top, #0088cc, #0077b3); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); + background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); + background-image: -o-linear-gradient(top, #0088cc, #0077b3); + background-image: linear-gradient(to bottom, #0088cc, #0077b3); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); +} +.bootstrap .dropdown-menu > .active > a, +.bootstrap .dropdown-menu > .active > a:hover, +.bootstrap .dropdown-menu > .active > a:focus { + color: #ffffff; + text-decoration: none; + background-color: #0081c2; + background-image: -moz-linear-gradient(top, #0088cc, #0077b3); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); + background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); + background-image: -o-linear-gradient(top, #0088cc, #0077b3); + background-image: linear-gradient(to bottom, #0088cc, #0077b3); + background-repeat: repeat-x; + outline: 0; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); +} +.bootstrap .dropdown-menu > .disabled > a, +.bootstrap .dropdown-menu > .disabled > a:hover, +.bootstrap .dropdown-menu > .disabled > a:focus { + color: #999999; +} +.bootstrap .dropdown-menu > .disabled > a:hover, +.bootstrap .dropdown-menu > .disabled > a:focus { + text-decoration: none; + cursor: default; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .open { + *z-index: 1000; +} +.bootstrap .open > .dropdown-menu { + display: block; +} +.bootstrap .dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990; +} +.bootstrap .pull-right > .dropdown-menu { + right: 0; + left: auto; +} +.bootstrap .dropup .caret, +.bootstrap .navbar-fixed-bottom .dropdown .caret { + border-top: 0; + border-bottom: 4px solid #000000; + content: ""; +} +.bootstrap .dropup .dropdown-menu, +.bootstrap .navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px; +} +.bootstrap .dropdown-submenu { + position: relative; +} +.bootstrap .dropdown-submenu > .dropdown-menu { + top: 0; + left: 100%; + margin-top: -6px; + margin-left: -1px; + -webkit-border-radius: 0 6px 6px 6px; + -moz-border-radius: 0 6px 6px 6px; + border-radius: 0 6px 6px 6px; +} +.bootstrap .dropdown-submenu:hover > .dropdown-menu { + display: block; +} +.bootstrap .dropup .dropdown-submenu > .dropdown-menu { + top: auto; + bottom: 0; + margin-top: 0; + margin-bottom: -2px; + -webkit-border-radius: 5px 5px 5px 0; + -moz-border-radius: 5px 5px 5px 0; + border-radius: 5px 5px 5px 0; +} +.bootstrap .dropdown-submenu > a:after { + display: block; + float: right; + width: 0; + height: 0; + margin-top: 5px; + margin-right: -10px; + border-color: transparent; + border-left-color: #cccccc; + border-style: solid; + border-width: 5px 0 5px 5px; + content: " "; +} +.bootstrap .dropdown-submenu:hover > a:after { + border-left-color: #ffffff; +} +.bootstrap .dropdown-submenu.pull-left { + float: none; +} +.bootstrap .dropdown-submenu.pull-left > .dropdown-menu { + left: -100%; + margin-left: 10px; + -webkit-border-radius: 6px 0 6px 6px; + -moz-border-radius: 6px 0 6px 6px; + border-radius: 6px 0 6px 6px; +} +.bootstrap .dropdown .dropdown-menu .nav-header { + padding-right: 20px; + padding-left: 20px; +} +.bootstrap .typeahead { + z-index: 1051; + margin-top: 2px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap .well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); +} +.bootstrap .well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, 0.15); +} +.bootstrap .well-large { + padding: 24px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} +.bootstrap .well-small { + padding: 9px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.bootstrap .fade { + opacity: 0; + -webkit-transition: opacity 0.15s linear; + -moz-transition: opacity 0.15s linear; + -o-transition: opacity 0.15s linear; + transition: opacity 0.15s linear; +} +.bootstrap .fade.in { + opacity: 1; +} +.bootstrap .collapse { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition: height 0.35s ease; + -moz-transition: height 0.35s ease; + -o-transition: height 0.35s ease; + transition: height 0.35s ease; +} +.bootstrap .collapse.in { + height: auto; +} +.bootstrap .close { + float: right; + font-size: 20px; + font-weight: bold; + line-height: 20px; + color: #000000; + text-shadow: 0 1px 0 #ffffff; + opacity: 0.2; + filter: alpha(opacity=20); +} +.bootstrap .close:hover, +.bootstrap .close:focus { + color: #000000; + text-decoration: none; + cursor: pointer; + opacity: 0.4; + filter: alpha(opacity=40); +} +.bootstrap button.close { + padding: 0; + cursor: pointer; + background: transparent; + border: 0; + -webkit-appearance: none; +} +.bootstrap .btn { + display: inline-block; + *display: inline; + padding: 4px 12px; + margin-bottom: 0; + *margin-left: .3em; + font-size: 14px; + line-height: 20px; + color: #333333; + text-align: center; + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); + vertical-align: middle; + cursor: pointer; + background-color: #f5f5f5; + *background-color: #e6e6e6; + background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); + background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); + background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); + background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); + background-repeat: repeat-x; + border: 1px solid #cccccc; + *border: 0; + border-color: #e6e6e6 #e6e6e6 #bfbfbf; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + border-bottom-color: #b3b3b3; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); + *zoom: 1; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); +} +.bootstrap .btn:hover, +.bootstrap .btn:focus, +.bootstrap .btn:active, +.bootstrap .btn.active, +.bootstrap .btn.disabled, +.bootstrap .btn[disabled] { + color: #333333; + background-color: #e6e6e6; + *background-color: #d9d9d9; +} +.bootstrap .btn:active, +.bootstrap .btn.active { + background-color: #cccccc \9; +} +.bootstrap .btn:first-child { + *margin-left: 0; +} +.bootstrap .btn:hover, +.bootstrap .btn:focus { + color: #333333; + text-decoration: none; + background-position: 0 -15px; + -webkit-transition: background-position 0.1s linear; + -moz-transition: background-position 0.1s linear; + -o-transition: background-position 0.1s linear; + transition: background-position 0.1s linear; +} +.bootstrap .btn:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.bootstrap .btn.active, +.bootstrap .btn:active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); +} +.bootstrap .btn.disabled, +.bootstrap .btn[disabled] { + cursor: default; + background-image: none; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.bootstrap .btn-large { + padding: 11px 19px; + font-size: 17.5px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} +.bootstrap .btn-large [class^="icon-"], +.bootstrap .btn-large [class*=" icon-"] { + margin-top: 4px; +} +.bootstrap .btn-small { + padding: 2px 10px; + font-size: 11.9px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.bootstrap .btn-small [class^="icon-"], +.bootstrap .btn-small [class*=" icon-"] { + margin-top: 0; +} +.bootstrap .btn-mini [class^="icon-"], +.bootstrap .btn-mini [class*=" icon-"] { + margin-top: -1px; +} +.bootstrap .btn-mini { + padding: 0 6px; + font-size: 10.5px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.bootstrap .btn-block { + display: block; + width: 100%; + padding-right: 0; + padding-left: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap .btn-block + .btn-block { + margin-top: 5px; +} +.bootstrap input[type="submit"].btn-block, +.bootstrap input[type="reset"].btn-block, +.bootstrap input[type="button"].btn-block { + width: 100%; +} +.bootstrap .btn-primary.active, +.bootstrap .btn-warning.active, +.bootstrap .btn-danger.active, +.bootstrap .btn-success.active, +.bootstrap .btn-info.active, +.bootstrap .btn-inverse.active { + color: rgba(255, 255, 255, 0.75); +} +.bootstrap .btn-primary { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #006dcc; + *background-color: #0044cc; + background-image: -moz-linear-gradient(top, #0088cc, #0044cc); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); + background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); + background-image: -o-linear-gradient(top, #0088cc, #0044cc); + background-image: linear-gradient(to bottom, #0088cc, #0044cc); + background-repeat: repeat-x; + border-color: #0044cc #0044cc #002a80; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .btn-primary:hover, +.bootstrap .btn-primary:focus, +.bootstrap .btn-primary:active, +.bootstrap .btn-primary.active, +.bootstrap .btn-primary.disabled, +.bootstrap .btn-primary[disabled] { + color: #ffffff; + background-color: #0044cc; + *background-color: #003bb3; +} +.bootstrap .btn-primary:active, +.bootstrap .btn-primary.active { + background-color: #003399 \9; +} +.bootstrap .btn-warning { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #faa732; + *background-color: #f89406; + background-image: -moz-linear-gradient(top, #fbb450, #f89406); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); + background-image: -webkit-linear-gradient(top, #fbb450, #f89406); + background-image: -o-linear-gradient(top, #fbb450, #f89406); + background-image: linear-gradient(to bottom, #fbb450, #f89406); + background-repeat: repeat-x; + border-color: #f89406 #f89406 #ad6704; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .btn-warning:hover, +.bootstrap .btn-warning:focus, +.bootstrap .btn-warning:active, +.bootstrap .btn-warning.active, +.bootstrap .btn-warning.disabled, +.bootstrap .btn-warning[disabled] { + color: #ffffff; + background-color: #f89406; + *background-color: #df8505; +} +.bootstrap .btn-warning:active, +.bootstrap .btn-warning.active { + background-color: #c67605 \9; +} +.bootstrap .btn-danger { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #da4f49; + *background-color: #bd362f; + background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); + background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); + background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); + background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); + background-repeat: repeat-x; + border-color: #bd362f #bd362f #802420; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .btn-danger:hover, +.bootstrap .btn-danger:focus, +.bootstrap .btn-danger:active, +.bootstrap .btn-danger.active, +.bootstrap .btn-danger.disabled, +.bootstrap .btn-danger[disabled] { + color: #ffffff; + background-color: #bd362f; + *background-color: #a9302a; +} +.bootstrap .btn-danger:active, +.bootstrap .btn-danger.active { + background-color: #942a25 \9; +} +.bootstrap .btn-success { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #5bb75b; + *background-color: #51a351; + background-image: -moz-linear-gradient(top, #62c462, #51a351); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); + background-image: -webkit-linear-gradient(top, #62c462, #51a351); + background-image: -o-linear-gradient(top, #62c462, #51a351); + background-image: linear-gradient(to bottom, #62c462, #51a351); + background-repeat: repeat-x; + border-color: #51a351 #51a351 #387038; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .btn-success:hover, +.bootstrap .btn-success:focus, +.bootstrap .btn-success:active, +.bootstrap .btn-success.active, +.bootstrap .btn-success.disabled, +.bootstrap .btn-success[disabled] { + color: #ffffff; + background-color: #51a351; + *background-color: #499249; +} +.bootstrap .btn-success:active, +.bootstrap .btn-success.active { + background-color: #408140 \9; +} +.bootstrap .btn-info { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #49afcd; + *background-color: #2f96b4; + background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); + background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); + background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); + background-image: linear-gradient(to bottom, #5bc0de, #2f96b4); + background-repeat: repeat-x; + border-color: #2f96b4 #2f96b4 #1f6377; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .btn-info:hover, +.bootstrap .btn-info:focus, +.bootstrap .btn-info:active, +.bootstrap .btn-info.active, +.bootstrap .btn-info.disabled, +.bootstrap .btn-info[disabled] { + color: #ffffff; + background-color: #2f96b4; + *background-color: #2a85a0; +} +.bootstrap .btn-info:active, +.bootstrap .btn-info.active { + background-color: #24748c \9; +} +.bootstrap .btn-inverse { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #363636; + *background-color: #222222; + background-image: -moz-linear-gradient(top, #444444, #222222); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); + background-image: -webkit-linear-gradient(top, #444444, #222222); + background-image: -o-linear-gradient(top, #444444, #222222); + background-image: linear-gradient(to bottom, #444444, #222222); + background-repeat: repeat-x; + border-color: #222222 #222222 #000000; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .btn-inverse:hover, +.bootstrap .btn-inverse:focus, +.bootstrap .btn-inverse:active, +.bootstrap .btn-inverse.active, +.bootstrap .btn-inverse.disabled, +.bootstrap .btn-inverse[disabled] { + color: #ffffff; + background-color: #222222; + *background-color: #151515; +} +.bootstrap .btn-inverse:active, +.bootstrap .btn-inverse.active { + background-color: #080808 \9; +} +.bootstrap button.btn, +.bootstrap input[type="submit"].btn { + *padding-top: 3px; + *padding-bottom: 3px; +} +.bootstrap button.btn::-moz-focus-inner, +.bootstrap input[type="submit"].btn::-moz-focus-inner { + padding: 0; + border: 0; +} +.bootstrap button.btn.btn-large, +.bootstrap input[type="submit"].btn.btn-large { + *padding-top: 7px; + *padding-bottom: 7px; +} +.bootstrap button.btn.btn-small, +.bootstrap input[type="submit"].btn.btn-small { + *padding-top: 3px; + *padding-bottom: 3px; +} +.bootstrap button.btn.btn-mini, +.bootstrap input[type="submit"].btn.btn-mini { + *padding-top: 1px; + *padding-bottom: 1px; +} +.bootstrap .btn-link, +.bootstrap .btn-link:active, +.bootstrap .btn-link[disabled] { + background-color: transparent; + background-image: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.bootstrap .btn-link { + color: #0088cc; + cursor: pointer; + border-color: transparent; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .btn-link:hover, +.bootstrap .btn-link:focus { + color: #005580; + text-decoration: underline; + background-color: transparent; +} +.bootstrap .btn-link[disabled]:hover, +.bootstrap .btn-link[disabled]:focus { + color: #333333; + text-decoration: none; +} +.bootstrap .btn-group { + position: relative; + display: inline-block; + *display: inline; + *margin-left: .3em; + font-size: 0; + white-space: nowrap; + vertical-align: middle; + *zoom: 1; +} +.bootstrap .btn-group:first-child { + *margin-left: 0; +} +.bootstrap .btn-group + .btn-group { + margin-left: 5px; +} +.bootstrap .btn-toolbar { + margin-top: 10px; + margin-bottom: 10px; + font-size: 0; +} +.bootstrap .btn-toolbar > .btn + .btn, +.bootstrap .btn-toolbar > .btn-group + .btn, +.bootstrap .btn-toolbar > .btn + .btn-group { + margin-left: 5px; +} +.bootstrap .btn-group > .btn { + position: relative; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .btn-group > .btn + .btn { + margin-left: -1px; +} +.bootstrap .btn-group > .btn, +.bootstrap .btn-group > .dropdown-menu, +.bootstrap .btn-group > .popover { + font-size: 14px; +} +.bootstrap .btn-group > .btn-mini { + font-size: 10.5px; +} +.bootstrap .btn-group > .btn-small { + font-size: 11.9px; +} +.bootstrap .btn-group > .btn-large { + font-size: 17.5px; +} +.bootstrap .btn-group > .btn:first-child { + margin-left: 0; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; + -moz-border-radius-topleft: 4px; +} +.bootstrap .btn-group > .btn:last-child, +.bootstrap .btn-group > .dropdown-toggle { + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; + -moz-border-radius-topright: 4px; + -moz-border-radius-bottomright: 4px; +} +.bootstrap .btn-group > .btn.large:first-child { + margin-left: 0; + -webkit-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -webkit-border-top-left-radius: 6px; + border-top-left-radius: 6px; + -moz-border-radius-bottomleft: 6px; + -moz-border-radius-topleft: 6px; +} +.bootstrap .btn-group > .btn.large:last-child, +.bootstrap .btn-group > .large.dropdown-toggle { + -webkit-border-top-right-radius: 6px; + border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + -moz-border-radius-topright: 6px; + -moz-border-radius-bottomright: 6px; +} +.bootstrap .btn-group > .btn:hover, +.bootstrap .btn-group > .btn:focus, +.bootstrap .btn-group > .btn:active, +.bootstrap .btn-group > .btn.active { + z-index: 2; +} +.bootstrap .btn-group .dropdown-toggle:active, +.bootstrap .btn-group.open .dropdown-toggle { + outline: 0; +} +.bootstrap .btn-group > .btn + .dropdown-toggle { + *padding-top: 5px; + padding-right: 8px; + *padding-bottom: 5px; + padding-left: 8px; + -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); +} +.bootstrap .btn-group > .btn-mini + .dropdown-toggle { + *padding-top: 2px; + padding-right: 5px; + *padding-bottom: 2px; + padding-left: 5px; +} +.bootstrap .btn-group > .btn-small + .dropdown-toggle { + *padding-top: 5px; + *padding-bottom: 4px; +} +.bootstrap .btn-group > .btn-large + .dropdown-toggle { + *padding-top: 7px; + padding-right: 12px; + *padding-bottom: 7px; + padding-left: 12px; +} +.bootstrap .btn-group.open .dropdown-toggle { + background-image: none; + -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); +} +.bootstrap .btn-group.open .btn.dropdown-toggle { + background-color: #e6e6e6; +} +.bootstrap .btn-group.open .btn-primary.dropdown-toggle { + background-color: #0044cc; +} +.bootstrap .btn-group.open .btn-warning.dropdown-toggle { + background-color: #f89406; +} +.bootstrap .btn-group.open .btn-danger.dropdown-toggle { + background-color: #bd362f; +} +.bootstrap .btn-group.open .btn-success.dropdown-toggle { + background-color: #51a351; +} +.bootstrap .btn-group.open .btn-info.dropdown-toggle { + background-color: #2f96b4; +} +.bootstrap .btn-group.open .btn-inverse.dropdown-toggle { + background-color: #222222; +} +.bootstrap .btn .caret { + margin-top: 8px; + margin-left: 0; +} +.bootstrap .btn-large .caret { + margin-top: 6px; +} +.bootstrap .btn-large .caret { + border-top-width: 5px; + border-right-width: 5px; + border-left-width: 5px; +} +.bootstrap .btn-mini .caret, +.bootstrap .btn-small .caret { + margin-top: 8px; +} +.bootstrap .dropup .btn-large .caret { + border-bottom-width: 5px; +} +.bootstrap .btn-primary .caret, +.bootstrap .btn-warning .caret, +.bootstrap .btn-danger .caret, +.bootstrap .btn-info .caret, +.bootstrap .btn-success .caret, +.bootstrap .btn-inverse .caret { + border-top-color: #ffffff; + border-bottom-color: #ffffff; +} +.bootstrap .btn-group-vertical { + display: inline-block; + *display: inline; + /* IE7 inline-block hack */ + + *zoom: 1; +} +.bootstrap .btn-group-vertical > .btn { + display: block; + float: none; + max-width: 100%; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .btn-group-vertical > .btn + .btn { + margin-top: -1px; + margin-left: 0; +} +.bootstrap .btn-group-vertical > .btn:first-child { + -webkit-border-radius: 4px 4px 0 0; + -moz-border-radius: 4px 4px 0 0; + border-radius: 4px 4px 0 0; +} +.bootstrap .btn-group-vertical > .btn:last-child { + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; +} +.bootstrap .btn-group-vertical > .btn-large:first-child { + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; +} +.bootstrap .btn-group-vertical > .btn-large:last-child { + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; +} +.bootstrap .alert { + padding: 8px 35px 8px 14px; + margin-bottom: 20px; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + background-color: #fcf8e3; + border: 1px solid #fbeed5; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap .alert, +.bootstrap .alert h4 { + color: #c09853; +} +.bootstrap .alert h4 { + margin: 0; +} +.bootstrap .alert .close { + position: relative; + top: -2px; + right: -21px; + line-height: 20px; +} +.bootstrap .alert-success { + color: #468847; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.bootstrap .alert-success h4 { + color: #468847; +} +.bootstrap .alert-danger, +.bootstrap .alert-error { + color: #b94a48; + background-color: #f2dede; + border-color: #eed3d7; +} +.bootstrap .alert-danger h4, +.bootstrap .alert-error h4 { + color: #b94a48; +} +.bootstrap .alert-info { + color: #3a87ad; + background-color: #d9edf7; + border-color: #bce8f1; +} +.bootstrap .alert-info h4 { + color: #3a87ad; +} +.bootstrap .alert-block { + padding-top: 14px; + padding-bottom: 14px; +} +.bootstrap .alert-block > p, +.bootstrap .alert-block > ul { + margin-bottom: 0; +} +.bootstrap .alert-block p + p { + margin-top: 5px; +} +.bootstrap .nav { + margin-bottom: 20px; + margin-left: 0; + list-style: none; +} +.bootstrap .nav > li > a { + display: block; +} +.bootstrap .nav > li > a:hover, +.bootstrap .nav > li > a:focus { + text-decoration: none; + background-color: #eeeeee; +} +.bootstrap .nav > li > a > img { + max-width: none; +} +.bootstrap .nav > .pull-right { + float: right; +} +.bootstrap .nav-header { + display: block; + padding: 3px 15px; + font-size: 11px; + font-weight: bold; + line-height: 20px; + color: #999999; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + text-transform: uppercase; +} +.bootstrap .nav li + .nav-header { + margin-top: 9px; +} +.bootstrap .nav-list { + padding-right: 15px; + padding-left: 15px; + margin-bottom: 0; +} +.bootstrap .nav-list > li > a, +.bootstrap .nav-list .nav-header { + margin-right: -15px; + margin-left: -15px; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); +} +.bootstrap .nav-list > li > a { + padding: 3px 15px; +} +.bootstrap .nav-list > .active > a, +.bootstrap .nav-list > .active > a:hover, +.bootstrap .nav-list > .active > a:focus { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); + background-color: #0088cc; +} +.bootstrap .nav-list [class^="icon-"], +.bootstrap .nav-list [class*=" icon-"] { + margin-right: 2px; +} +.bootstrap .nav-list .divider { + *width: 100%; + height: 1px; + margin: 9px 1px; + *margin: -5px 0 5px; + overflow: hidden; + background-color: #e5e5e5; + border-bottom: 1px solid #ffffff; +} +.bootstrap .nav-tabs, +.bootstrap .nav-pills { + *zoom: 1; +} +.bootstrap .nav-tabs:before, +.bootstrap .nav-pills:before, +.bootstrap .nav-tabs:after, +.bootstrap .nav-pills:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .nav-tabs:after, +.bootstrap .nav-pills:after { + clear: both; +} +.bootstrap .nav-tabs > li, +.bootstrap .nav-pills > li { + float: left; +} +.bootstrap .nav-tabs > li > a, +.bootstrap .nav-pills > li > a { + padding-right: 12px; + padding-left: 12px; + margin-right: 2px; + line-height: 14px; +} +.bootstrap .nav-tabs { + border-bottom: 1px solid #ddd; +} +.bootstrap .nav-tabs > li { + margin-bottom: -1px; +} +.bootstrap .nav-tabs > li > a { + padding-top: 8px; + padding-bottom: 8px; + line-height: 20px; + border: 1px solid transparent; + -webkit-border-radius: 4px 4px 0 0; + -moz-border-radius: 4px 4px 0 0; + border-radius: 4px 4px 0 0; +} +.bootstrap .nav-tabs > li > a:hover, +.bootstrap .nav-tabs > li > a:focus { + border-color: #eeeeee #eeeeee #dddddd; +} +.bootstrap .nav-tabs > .active > a, +.bootstrap .nav-tabs > .active > a:hover, +.bootstrap .nav-tabs > .active > a:focus { + color: #555555; + cursor: default; + background-color: #ffffff; + border: 1px solid #ddd; + border-bottom-color: transparent; +} +.bootstrap .nav-pills > li > a { + padding-top: 8px; + padding-bottom: 8px; + margin-top: 2px; + margin-bottom: 2px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; +} +.bootstrap .nav-pills > .active > a, +.bootstrap .nav-pills > .active > a:hover, +.bootstrap .nav-pills > .active > a:focus { + color: #ffffff; + background-color: #0088cc; +} +.bootstrap .nav-stacked > li { + float: none; +} +.bootstrap .nav-stacked > li > a { + margin-right: 0; +} +.bootstrap .nav-tabs.nav-stacked { + border-bottom: 0; +} +.bootstrap .nav-tabs.nav-stacked > li > a { + border: 1px solid #ddd; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .nav-tabs.nav-stacked > li:first-child > a { + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-topright: 4px; + -moz-border-radius-topleft: 4px; +} +.bootstrap .nav-tabs.nav-stacked > li:last-child > a { + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -moz-border-radius-bottomright: 4px; + -moz-border-radius-bottomleft: 4px; +} +.bootstrap .nav-tabs.nav-stacked > li > a:hover, +.bootstrap .nav-tabs.nav-stacked > li > a:focus { + z-index: 2; + border-color: #ddd; +} +.bootstrap .nav-pills.nav-stacked > li > a { + margin-bottom: 3px; +} +.bootstrap .nav-pills.nav-stacked > li:last-child > a { + margin-bottom: 1px; +} +.bootstrap .nav-tabs .dropdown-menu { + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; +} +.bootstrap .nav-pills .dropdown-menu { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} +.bootstrap .nav .dropdown-toggle .caret { + margin-top: 6px; + border-top-color: #0088cc; + border-bottom-color: #0088cc; +} +.bootstrap .nav .dropdown-toggle:hover .caret, +.bootstrap .nav .dropdown-toggle:focus .caret { + border-top-color: #005580; + border-bottom-color: #005580; +} +.bootstrap .nav-tabs .dropdown-toggle .caret { + margin-top: 8px; +} +.bootstrap .nav .active .dropdown-toggle .caret { + border-top-color: #fff; + border-bottom-color: #fff; +} +.bootstrap .nav-tabs .active .dropdown-toggle .caret { + border-top-color: #555555; + border-bottom-color: #555555; +} +.bootstrap .nav > .dropdown.active > a:hover, +.bootstrap .nav > .dropdown.active > a:focus { + cursor: pointer; +} +.bootstrap .nav-tabs .open .dropdown-toggle, +.bootstrap .nav-pills .open .dropdown-toggle, +.bootstrap .nav > li.dropdown.open.active > a:hover, +.bootstrap .nav > li.dropdown.open.active > a:focus { + color: #ffffff; + background-color: #999999; + border-color: #999999; +} +.bootstrap .nav li.dropdown.open .caret, +.bootstrap .nav li.dropdown.open.active .caret, +.bootstrap .nav li.dropdown.open a:hover .caret, +.bootstrap .nav li.dropdown.open a:focus .caret { + border-top-color: #ffffff; + border-bottom-color: #ffffff; + opacity: 1; + filter: alpha(opacity=100); +} +.bootstrap .tabs-stacked .open > a:hover, +.bootstrap .tabs-stacked .open > a:focus { + border-color: #999999; +} +.bootstrap .tabbable { + *zoom: 1; +} +.bootstrap .tabbable:before, +.bootstrap .tabbable:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .tabbable:after { + clear: both; +} +.bootstrap .tab-content { + overflow: auto; +} +.bootstrap .tabs-below > .nav-tabs, +.bootstrap .tabs-right > .nav-tabs, +.bootstrap .tabs-left > .nav-tabs { + border-bottom: 0; +} +.bootstrap .tab-content > .tab-pane, +.bootstrap .pill-content > .pill-pane { + display: none; +} +.bootstrap .tab-content > .active, +.bootstrap .pill-content > .active { + display: block; +} +.bootstrap .tabs-below > .nav-tabs { + border-top: 1px solid #ddd; +} +.bootstrap .tabs-below > .nav-tabs > li { + margin-top: -1px; + margin-bottom: 0; +} +.bootstrap .tabs-below > .nav-tabs > li > a { + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; +} +.bootstrap .tabs-below > .nav-tabs > li > a:hover, +.bootstrap .tabs-below > .nav-tabs > li > a:focus { + border-top-color: #ddd; + border-bottom-color: transparent; +} +.bootstrap .tabs-below > .nav-tabs > .active > a, +.bootstrap .tabs-below > .nav-tabs > .active > a:hover, +.bootstrap .tabs-below > .nav-tabs > .active > a:focus { + border-color: transparent #ddd #ddd #ddd; +} +.bootstrap .tabs-left > .nav-tabs > li, +.bootstrap .tabs-right > .nav-tabs > li { + float: none; +} +.bootstrap .tabs-left > .nav-tabs > li > a, +.bootstrap .tabs-right > .nav-tabs > li > a { + min-width: 74px; + margin-right: 0; + margin-bottom: 3px; +} +.bootstrap .tabs-left > .nav-tabs { + float: left; + margin-right: 19px; + border-right: 1px solid #ddd; +} +.bootstrap .tabs-left > .nav-tabs > li > a { + margin-right: -1px; + -webkit-border-radius: 4px 0 0 4px; + -moz-border-radius: 4px 0 0 4px; + border-radius: 4px 0 0 4px; +} +.bootstrap .tabs-left > .nav-tabs > li > a:hover, +.bootstrap .tabs-left > .nav-tabs > li > a:focus { + border-color: #eeeeee #dddddd #eeeeee #eeeeee; +} +.bootstrap .tabs-left > .nav-tabs .active > a, +.bootstrap .tabs-left > .nav-tabs .active > a:hover, +.bootstrap .tabs-left > .nav-tabs .active > a:focus { + border-color: #ddd transparent #ddd #ddd; + *border-right-color: #ffffff; +} +.bootstrap .tabs-right > .nav-tabs { + float: right; + margin-left: 19px; + border-left: 1px solid #ddd; +} +.bootstrap .tabs-right > .nav-tabs > li > a { + margin-left: -1px; + -webkit-border-radius: 0 4px 4px 0; + -moz-border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; +} +.bootstrap .tabs-right > .nav-tabs > li > a:hover, +.bootstrap .tabs-right > .nav-tabs > li > a:focus { + border-color: #eeeeee #eeeeee #eeeeee #dddddd; +} +.bootstrap .tabs-right > .nav-tabs .active > a, +.bootstrap .tabs-right > .nav-tabs .active > a:hover, +.bootstrap .tabs-right > .nav-tabs .active > a:focus { + border-color: #ddd #ddd #ddd transparent; + *border-left-color: #ffffff; +} +.bootstrap .nav > .disabled > a { + color: #999999; +} +.bootstrap .nav > .disabled > a:hover, +.bootstrap .nav > .disabled > a:focus { + text-decoration: none; + cursor: default; + background-color: transparent; +} +.bootstrap .navbar { + *position: relative; + *z-index: 2; + margin-bottom: 20px; + overflow: visible; +} +.bootstrap .navbar-inner { + min-height: 40px; + padding-right: 20px; + padding-left: 20px; + background-color: #fafafa; + background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2)); + background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2); + background-image: -o-linear-gradient(top, #ffffff, #f2f2f2); + background-image: linear-gradient(to bottom, #ffffff, #f2f2f2); + background-repeat: repeat-x; + border: 1px solid #d4d4d4; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0); + *zoom: 1; + -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); + -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); +} +.bootstrap .navbar-inner:before, +.bootstrap .navbar-inner:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .navbar-inner:after { + clear: both; +} +.bootstrap .navbar .container { + width: auto; +} +.bootstrap .nav-collapse.collapse { + height: auto; + overflow: visible; +} +.bootstrap .navbar .brand { + display: block; + float: left; + padding: 10px 20px 10px; + margin-left: -20px; + font-size: 20px; + font-weight: 200; + color: #777777; + text-shadow: 0 1px 0 #ffffff; +} +.bootstrap .navbar .brand:hover, +.bootstrap .navbar .brand:focus { + text-decoration: none; +} +.bootstrap .navbar-text { + margin-bottom: 0; + line-height: 40px; + color: #777777; +} +.bootstrap .navbar-link { + color: #777777; +} +.bootstrap .navbar-link:hover, +.bootstrap .navbar-link:focus { + color: #333333; +} +.bootstrap .navbar .divider-vertical { + height: 40px; + margin: 0 9px; + border-right: 1px solid #ffffff; + border-left: 1px solid #f2f2f2; +} +.bootstrap .navbar .btn, +.bootstrap .navbar .btn-group { + margin-top: 5px; +} +.bootstrap .navbar .btn-group .btn, +.bootstrap .navbar .input-prepend .btn, +.bootstrap .navbar .input-append .btn, +.bootstrap .navbar .input-prepend .btn-group, +.bootstrap .navbar .input-append .btn-group { + margin-top: 0; +} +.bootstrap .navbar-form { + margin-bottom: 0; + *zoom: 1; +} +.bootstrap .navbar-form:before, +.bootstrap .navbar-form:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .navbar-form:after { + clear: both; +} +.bootstrap .navbar-form input, +.bootstrap .navbar-form select, +.bootstrap .navbar-form .radio, +.bootstrap .navbar-form .checkbox { + margin-top: 5px; +} +.bootstrap .navbar-form input, +.bootstrap .navbar-form select, +.bootstrap .navbar-form .btn { + display: inline-block; + margin-bottom: 0; +} +.bootstrap .navbar-form input[type="image"], +.bootstrap .navbar-form input[type="checkbox"], +.bootstrap .navbar-form input[type="radio"] { + margin-top: 3px; +} +.bootstrap .navbar-form .input-append, +.bootstrap .navbar-form .input-prepend { + margin-top: 5px; + white-space: nowrap; +} +.bootstrap .navbar-form .input-append input, +.bootstrap .navbar-form .input-prepend input { + margin-top: 0; +} +.bootstrap .navbar-search { + position: relative; + float: left; + margin-top: 5px; + margin-bottom: 0; +} +.bootstrap .navbar-search .search-query { + padding: 4px 14px; + margin-bottom: 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 13px; + font-weight: normal; + line-height: 1; + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; +} +.bootstrap .navbar-static-top { + position: static; + margin-bottom: 0; +} +.bootstrap .navbar-static-top .navbar-inner { + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .navbar-fixed-top, +.bootstrap .navbar-fixed-bottom { + position: fixed; + right: 0; + left: 0; + z-index: 1030; + margin-bottom: 0; +} +.bootstrap .navbar-fixed-top .navbar-inner, +.bootstrap .navbar-static-top .navbar-inner { + border-width: 0 0 1px; +} +.bootstrap .navbar-fixed-bottom .navbar-inner { + border-width: 1px 0 0; +} +.bootstrap .navbar-fixed-top .navbar-inner, +.bootstrap .navbar-fixed-bottom .navbar-inner { + padding-right: 0; + padding-left: 0; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; +} +.bootstrap .navbar-static-top .container, +.bootstrap .navbar-fixed-top .container, +.bootstrap .navbar-fixed-bottom .container { + width: 940px; +} +.bootstrap .navbar-fixed-top { + top: 0; +} +.bootstrap .navbar-fixed-top .navbar-inner, +.bootstrap .navbar-static-top .navbar-inner { + -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); +} +.bootstrap .navbar-fixed-bottom { + bottom: 0; +} +.bootstrap .navbar-fixed-bottom .navbar-inner { + -webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); + box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); +} +.bootstrap .navbar .nav { + position: relative; + left: 0; + display: block; + float: left; + margin: 0 10px 0 0; +} +.bootstrap .navbar .nav.pull-right { + float: right; + margin-right: 0; +} +.bootstrap .navbar .nav > li { + float: left; +} +.bootstrap .navbar .nav > li > a { + float: none; + padding: 10px 15px 10px; + color: #777777; + text-decoration: none; + text-shadow: 0 1px 0 #ffffff; +} +.bootstrap .navbar .nav .dropdown-toggle .caret { + margin-top: 8px; +} +.bootstrap .navbar .nav > li > a:focus, +.bootstrap .navbar .nav > li > a:hover { + color: #333333; + text-decoration: none; + background-color: transparent; +} +.bootstrap .navbar .nav > .active > a, +.bootstrap .navbar .nav > .active > a:hover, +.bootstrap .navbar .nav > .active > a:focus { + color: #555555; + text-decoration: none; + background-color: #e5e5e5; + -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); + -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); +} +.bootstrap .navbar .btn-navbar { + display: none; + float: right; + padding: 7px 10px; + margin-right: 5px; + margin-left: 5px; + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #ededed; + *background-color: #e5e5e5; + background-image: -moz-linear-gradient(top, #f2f2f2, #e5e5e5); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5)); + background-image: -webkit-linear-gradient(top, #f2f2f2, #e5e5e5); + background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5); + background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5); + background-repeat: repeat-x; + border-color: #e5e5e5 #e5e5e5 #bfbfbf; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); + -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); +} +.bootstrap .navbar .btn-navbar:hover, +.bootstrap .navbar .btn-navbar:focus, +.bootstrap .navbar .btn-navbar:active, +.bootstrap .navbar .btn-navbar.active, +.bootstrap .navbar .btn-navbar.disabled, +.bootstrap .navbar .btn-navbar[disabled] { + color: #ffffff; + background-color: #e5e5e5; + *background-color: #d9d9d9; +} +.bootstrap .navbar .btn-navbar:active, +.bootstrap .navbar .btn-navbar.active { + background-color: #cccccc \9; +} +.bootstrap .navbar .btn-navbar .icon-bar { + display: block; + width: 18px; + height: 2px; + background-color: #f5f5f5; + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px; + -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); + -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); + box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); +} +.bootstrap .btn-navbar .icon-bar + .icon-bar { + margin-top: 3px; +} +.bootstrap .navbar .nav > li > .dropdown-menu:before { + position: absolute; + top: -7px; + left: 9px; + display: inline-block; + border-right: 7px solid transparent; + border-bottom: 7px solid #ccc; + border-left: 7px solid transparent; + border-bottom-color: rgba(0, 0, 0, 0.2); + content: ''; +} +.bootstrap .navbar .nav > li > .dropdown-menu:after { + position: absolute; + top: -6px; + left: 10px; + display: inline-block; + border-right: 6px solid transparent; + border-bottom: 6px solid #ffffff; + border-left: 6px solid transparent; + content: ''; +} +.bootstrap .navbar-fixed-bottom .nav > li > .dropdown-menu:before { + top: auto; + bottom: -7px; + border-top: 7px solid #ccc; + border-bottom: 0; + border-top-color: rgba(0, 0, 0, 0.2); +} +.bootstrap .navbar-fixed-bottom .nav > li > .dropdown-menu:after { + top: auto; + bottom: -6px; + border-top: 6px solid #ffffff; + border-bottom: 0; +} +.bootstrap .navbar .nav li.dropdown > a:hover .caret, +.bootstrap .navbar .nav li.dropdown > a:focus .caret { + border-top-color: #333333; + border-bottom-color: #333333; +} +.bootstrap .navbar .nav li.dropdown.open > .dropdown-toggle, +.bootstrap .navbar .nav li.dropdown.active > .dropdown-toggle, +.bootstrap .navbar .nav li.dropdown.open.active > .dropdown-toggle { + color: #555555; + background-color: #e5e5e5; +} +.bootstrap .navbar .nav li.dropdown > .dropdown-toggle .caret { + border-top-color: #777777; + border-bottom-color: #777777; +} +.bootstrap .navbar .nav li.dropdown.open > .dropdown-toggle .caret, +.bootstrap .navbar .nav li.dropdown.active > .dropdown-toggle .caret, +.bootstrap .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { + border-top-color: #555555; + border-bottom-color: #555555; +} +.bootstrap .navbar .pull-right > li > .dropdown-menu, +.bootstrap .navbar .nav > li > .dropdown-menu.pull-right { + right: 0; + left: auto; +} +.bootstrap .navbar .pull-right > li > .dropdown-menu:before, +.bootstrap .navbar .nav > li > .dropdown-menu.pull-right:before { + right: 12px; + left: auto; +} +.bootstrap .navbar .pull-right > li > .dropdown-menu:after, +.bootstrap .navbar .nav > li > .dropdown-menu.pull-right:after { + right: 13px; + left: auto; +} +.bootstrap .navbar .pull-right > li > .dropdown-menu .dropdown-menu, +.bootstrap .navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu { + right: 100%; + left: auto; + margin-right: -1px; + margin-left: 0; + -webkit-border-radius: 6px 0 6px 6px; + -moz-border-radius: 6px 0 6px 6px; + border-radius: 6px 0 6px 6px; +} +.bootstrap .navbar-inverse .navbar-inner { + background-color: #1b1b1b; + background-image: -moz-linear-gradient(top, #222222, #111111); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#222222), to(#111111)); + background-image: -webkit-linear-gradient(top, #222222, #111111); + background-image: -o-linear-gradient(top, #222222, #111111); + background-image: linear-gradient(to bottom, #222222, #111111); + background-repeat: repeat-x; + border-color: #252525; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0); +} +.bootstrap .navbar-inverse .brand, +.bootstrap .navbar-inverse .nav > li > a { + color: #999999; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); +} +.bootstrap .navbar-inverse .brand:hover, +.bootstrap .navbar-inverse .nav > li > a:hover, +.bootstrap .navbar-inverse .brand:focus, +.bootstrap .navbar-inverse .nav > li > a:focus { + color: #ffffff; +} +.bootstrap .navbar-inverse .brand { + color: #999999; +} +.bootstrap .navbar-inverse .navbar-text { + color: #999999; +} +.bootstrap .navbar-inverse .nav > li > a:focus, +.bootstrap .navbar-inverse .nav > li > a:hover { + color: #ffffff; + background-color: transparent; +} +.bootstrap .navbar-inverse .nav .active > a, +.bootstrap .navbar-inverse .nav .active > a:hover, +.bootstrap .navbar-inverse .nav .active > a:focus { + color: #ffffff; + background-color: #111111; +} +.bootstrap .navbar-inverse .navbar-link { + color: #999999; +} +.bootstrap .navbar-inverse .navbar-link:hover, +.bootstrap .navbar-inverse .navbar-link:focus { + color: #ffffff; +} +.bootstrap .navbar-inverse .divider-vertical { + border-right-color: #222222; + border-left-color: #111111; +} +.bootstrap .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, +.bootstrap .navbar-inverse .nav li.dropdown.active > .dropdown-toggle, +.bootstrap .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { + color: #ffffff; + background-color: #111111; +} +.bootstrap .navbar-inverse .nav li.dropdown > a:hover .caret, +.bootstrap .navbar-inverse .nav li.dropdown > a:focus .caret { + border-top-color: #ffffff; + border-bottom-color: #ffffff; +} +.bootstrap .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { + border-top-color: #999999; + border-bottom-color: #999999; +} +.bootstrap .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, +.bootstrap .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, +.bootstrap .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { + border-top-color: #ffffff; + border-bottom-color: #ffffff; +} +.bootstrap .navbar-inverse .navbar-search .search-query { + color: #ffffff; + background-color: #515151; + border-color: #111111; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); + -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15); + -webkit-transition: none; + -moz-transition: none; + -o-transition: none; + transition: none; +} +.bootstrap .navbar-inverse .navbar-search .search-query:-moz-placeholder { + color: #cccccc; +} +.bootstrap .navbar-inverse .navbar-search .search-query:-ms-input-placeholder { + color: #cccccc; +} +.bootstrap .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { + color: #cccccc; +} +.bootstrap .navbar-inverse .navbar-search .search-query:focus, +.bootstrap .navbar-inverse .navbar-search .search-query.focused { + padding: 5px 15px; + color: #333333; + text-shadow: 0 1px 0 #ffffff; + background-color: #ffffff; + border: 0; + outline: 0; + -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); + -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); + box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); +} +.bootstrap .navbar-inverse .btn-navbar { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #0e0e0e; + *background-color: #040404; + background-image: -moz-linear-gradient(top, #151515, #040404); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#151515), to(#040404)); + background-image: -webkit-linear-gradient(top, #151515, #040404); + background-image: -o-linear-gradient(top, #151515, #040404); + background-image: linear-gradient(to bottom, #151515, #040404); + background-repeat: repeat-x; + border-color: #040404 #040404 #000000; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515', endColorstr='#ff040404', GradientType=0); + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); +} +.bootstrap .navbar-inverse .btn-navbar:hover, +.bootstrap .navbar-inverse .btn-navbar:focus, +.bootstrap .navbar-inverse .btn-navbar:active, +.bootstrap .navbar-inverse .btn-navbar.active, +.bootstrap .navbar-inverse .btn-navbar.disabled, +.bootstrap .navbar-inverse .btn-navbar[disabled] { + color: #ffffff; + background-color: #040404; + *background-color: #000000; +} +.bootstrap .navbar-inverse .btn-navbar:active, +.bootstrap .navbar-inverse .btn-navbar.active { + background-color: #000000 \9; +} +.bootstrap .breadcrumb { + padding: 8px 15px; + margin: 0 0 20px; + list-style: none; + background-color: #f5f5f5; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap .breadcrumb > li { + display: inline-block; + *display: inline; + text-shadow: 0 1px 0 #ffffff; + *zoom: 1; +} +.bootstrap .breadcrumb > li > .divider { + padding: 0 5px; + color: #ccc; +} +.bootstrap .breadcrumb > .active { + color: #999999; +} +.bootstrap .pagination { + margin: 20px 0; +} +.bootstrap .pagination ul { + display: inline-block; + *display: inline; + margin-bottom: 0; + margin-left: 0; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + *zoom: 1; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); +} +.bootstrap .pagination ul > li { + display: inline; +} +.bootstrap .pagination ul > li > a, +.bootstrap .pagination ul > li > span { + float: left; + padding: 4px 12px; + line-height: 20px; + text-decoration: none; + background-color: #ffffff; + border: 1px solid #dddddd; + border-left-width: 0; +} +.bootstrap .pagination ul > li > a:hover, +.bootstrap .pagination ul > li > a:focus, +.bootstrap .pagination ul > .active > a, +.bootstrap .pagination ul > .active > span { + background-color: #f5f5f5; +} +.bootstrap .pagination ul > .active > a, +.bootstrap .pagination ul > .active > span { + color: #999999; + cursor: default; +} +.bootstrap .pagination ul > .disabled > span, +.bootstrap .pagination ul > .disabled > a, +.bootstrap .pagination ul > .disabled > a:hover, +.bootstrap .pagination ul > .disabled > a:focus { + color: #999999; + cursor: default; + background-color: transparent; +} +.bootstrap .pagination ul > li:first-child > a, +.bootstrap .pagination ul > li:first-child > span { + border-left-width: 1px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; + -moz-border-radius-topleft: 4px; +} +.bootstrap .pagination ul > li:last-child > a, +.bootstrap .pagination ul > li:last-child > span { + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; + -moz-border-radius-topright: 4px; + -moz-border-radius-bottomright: 4px; +} +.bootstrap .pagination-centered { + text-align: center; +} +.bootstrap .pagination-right { + text-align: right; +} +.bootstrap .pagination-large ul > li > a, +.bootstrap .pagination-large ul > li > span { + padding: 11px 19px; + font-size: 17.5px; +} +.bootstrap .pagination-large ul > li:first-child > a, +.bootstrap .pagination-large ul > li:first-child > span { + -webkit-border-bottom-left-radius: 6px; + border-bottom-left-radius: 6px; + -webkit-border-top-left-radius: 6px; + border-top-left-radius: 6px; + -moz-border-radius-bottomleft: 6px; + -moz-border-radius-topleft: 6px; +} +.bootstrap .pagination-large ul > li:last-child > a, +.bootstrap .pagination-large ul > li:last-child > span { + -webkit-border-top-right-radius: 6px; + border-top-right-radius: 6px; + -webkit-border-bottom-right-radius: 6px; + border-bottom-right-radius: 6px; + -moz-border-radius-topright: 6px; + -moz-border-radius-bottomright: 6px; +} +.bootstrap .pagination-mini ul > li:first-child > a, +.bootstrap .pagination-small ul > li:first-child > a, +.bootstrap .pagination-mini ul > li:first-child > span, +.bootstrap .pagination-small ul > li:first-child > span { + -webkit-border-bottom-left-radius: 3px; + border-bottom-left-radius: 3px; + -webkit-border-top-left-radius: 3px; + border-top-left-radius: 3px; + -moz-border-radius-bottomleft: 3px; + -moz-border-radius-topleft: 3px; +} +.bootstrap .pagination-mini ul > li:last-child > a, +.bootstrap .pagination-small ul > li:last-child > a, +.bootstrap .pagination-mini ul > li:last-child > span, +.bootstrap .pagination-small ul > li:last-child > span { + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; + -moz-border-radius-topright: 3px; + -moz-border-radius-bottomright: 3px; +} +.bootstrap .pagination-small ul > li > a, +.bootstrap .pagination-small ul > li > span { + padding: 2px 10px; + font-size: 11.9px; +} +.bootstrap .pagination-mini ul > li > a, +.bootstrap .pagination-mini ul > li > span { + padding: 0 6px; + font-size: 10.5px; +} +.bootstrap .pager { + margin: 20px 0; + text-align: center; + list-style: none; + *zoom: 1; +} +.bootstrap .pager:before, +.bootstrap .pager:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .pager:after { + clear: both; +} +.bootstrap .pager li { + display: inline; +} +.bootstrap .pager li > a, +.bootstrap .pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #fff; + border: 1px solid #ddd; + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; +} +.bootstrap .pager li > a:hover, +.bootstrap .pager li > a:focus { + text-decoration: none; + background-color: #f5f5f5; +} +.bootstrap .pager .next > a, +.bootstrap .pager .next > span { + float: right; +} +.bootstrap .pager .previous > a, +.bootstrap .pager .previous > span { + float: left; +} +.bootstrap .pager .disabled > a, +.bootstrap .pager .disabled > a:hover, +.bootstrap .pager .disabled > a:focus, +.bootstrap .pager .disabled > span { + color: #999999; + cursor: default; + background-color: #fff; +} +.bootstrap .modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000000; +} +.bootstrap .modal-backdrop.fade { + opacity: 0; +} +.bootstrap .modal-backdrop, +.bootstrap .modal-backdrop.fade.in { + opacity: 0.8; + filter: alpha(opacity=80); +} +.bootstrap .modal { + position: fixed; + top: 10%; + left: 50%; + z-index: 1050; + width: 560px; + margin-left: -280px; + background-color: #ffffff; + border: 1px solid #999; + border: 1px solid rgba(0, 0, 0, 0.3); + *border: 1px solid #999; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + outline: none; + -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); + -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); + box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); + -webkit-background-clip: padding-box; + -moz-background-clip: padding-box; + background-clip: padding-box; +} +.bootstrap .modal.fade { + top: -25%; + -webkit-transition: opacity 0.3s linear, top 0.3s ease-out; + -moz-transition: opacity 0.3s linear, top 0.3s ease-out; + -o-transition: opacity 0.3s linear, top 0.3s ease-out; + transition: opacity 0.3s linear, top 0.3s ease-out; +} +.bootstrap .modal.fade.in { + top: 10%; +} +.bootstrap .modal-header { + padding: 9px 15px; + border-bottom: 1px solid #eee; +} +.bootstrap .modal-header .close { + margin-top: 2px; +} +.bootstrap .modal-header h3 { + margin: 0; + line-height: 30px; +} +.bootstrap .modal-body { + position: relative; + max-height: 400px; + padding: 15px; + overflow-y: auto; +} +.bootstrap .modal-form { + margin-bottom: 0; +} +.bootstrap .modal-footer { + padding: 14px 15px 15px; + margin-bottom: 0; + text-align: right; + background-color: #f5f5f5; + border-top: 1px solid #ddd; + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + *zoom: 1; + -webkit-box-shadow: inset 0 1px 0 #ffffff; + -moz-box-shadow: inset 0 1px 0 #ffffff; + box-shadow: inset 0 1px 0 #ffffff; +} +.bootstrap .modal-footer:before, +.bootstrap .modal-footer:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .modal-footer:after { + clear: both; +} +.bootstrap .modal-footer .btn + .btn { + margin-bottom: 0; + margin-left: 5px; +} +.bootstrap .modal-footer .btn-group .btn + .btn { + margin-left: -1px; +} +.bootstrap .modal-footer .btn-block + .btn-block { + margin-left: 0; +} +.bootstrap .tooltip { + position: absolute; + z-index: 1030; + display: block; + font-size: 11px; + line-height: 1.4; + opacity: 0; + filter: alpha(opacity=0); + visibility: visible; +} +.bootstrap .tooltip.in { + opacity: 0.8; + filter: alpha(opacity=80); +} +.bootstrap .tooltip.top { + padding: 5px 0; + margin-top: -3px; +} +.bootstrap .tooltip.right { + padding: 0 5px; + margin-left: 3px; +} +.bootstrap .tooltip.bottom { + padding: 5px 0; + margin-top: 3px; +} +.bootstrap .tooltip.left { + padding: 0 5px; + margin-left: -3px; +} +.bootstrap .tooltip-inner { + max-width: 200px; + padding: 8px; + color: #ffffff; + text-align: center; + text-decoration: none; + background-color: #000000; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap .tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.bootstrap .tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-top-color: #000000; + border-width: 5px 5px 0; +} +.bootstrap .tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-right-color: #000000; + border-width: 5px 5px 5px 0; +} +.bootstrap .tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-left-color: #000000; + border-width: 5px 0 5px 5px; +} +.bootstrap .tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-bottom-color: #000000; + border-width: 0 5px 5px; +} +.bootstrap .popover { + position: absolute; + top: 0; + left: 0; + z-index: 1010; + display: none; + max-width: 276px; + padding: 1px; + text-align: left; + white-space: normal; + background-color: #ffffff; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.2); + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + -webkit-background-clip: padding-box; + -moz-background-clip: padding; + background-clip: padding-box; +} +.bootstrap .popover.top { + margin-top: -10px; +} +.bootstrap .popover.right { + margin-left: 10px; +} +.bootstrap .popover.bottom { + margin-top: 10px; +} +.bootstrap .popover.left { + margin-left: -10px; +} +.bootstrap .popover-title { + padding: 8px 14px; + margin: 0; + font-size: 14px; + font-weight: normal; + line-height: 18px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + -webkit-border-radius: 5px 5px 0 0; + -moz-border-radius: 5px 5px 0 0; + border-radius: 5px 5px 0 0; +} +.bootstrap .popover-title:empty { + display: none; +} +.bootstrap .popover-content { + padding: 9px 14px; +} +.bootstrap .popover .arrow, +.bootstrap .popover .arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.bootstrap .popover .arrow { + border-width: 11px; +} +.bootstrap .popover .arrow:after { + border-width: 10px; + content: ""; +} +.bootstrap .popover.top .arrow { + bottom: -11px; + left: 50%; + margin-left: -11px; + border-top-color: #999; + border-top-color: rgba(0, 0, 0, 0.25); + border-bottom-width: 0; +} +.bootstrap .popover.top .arrow:after { + bottom: 1px; + margin-left: -10px; + border-top-color: #ffffff; + border-bottom-width: 0; +} +.bootstrap .popover.right .arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-right-color: #999; + border-right-color: rgba(0, 0, 0, 0.25); + border-left-width: 0; +} +.bootstrap .popover.right .arrow:after { + bottom: -10px; + left: 1px; + border-right-color: #ffffff; + border-left-width: 0; +} +.bootstrap .popover.bottom .arrow { + top: -11px; + left: 50%; + margin-left: -11px; + border-bottom-color: #999; + border-bottom-color: rgba(0, 0, 0, 0.25); + border-top-width: 0; +} +.bootstrap .popover.bottom .arrow:after { + top: 1px; + margin-left: -10px; + border-bottom-color: #ffffff; + border-top-width: 0; +} +.bootstrap .popover.left .arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-left-color: #999; + border-left-color: rgba(0, 0, 0, 0.25); + border-right-width: 0; +} +.bootstrap .popover.left .arrow:after { + right: 1px; + bottom: -10px; + border-left-color: #ffffff; + border-right-width: 0; +} +.bootstrap .thumbnails { + margin-left: -20px; + list-style: none; + *zoom: 1; +} +.bootstrap .thumbnails:before, +.bootstrap .thumbnails:after { + display: table; + line-height: 0; + content: ""; +} +.bootstrap .thumbnails:after { + clear: both; +} +.bootstrap .row-fluid .thumbnails { + margin-left: 0; +} +.bootstrap .thumbnails > li { + float: left; + margin-bottom: 20px; + margin-left: 20px; +} +.bootstrap .thumbnail { + display: block; + padding: 4px; + line-height: 20px; + border: 1px solid #ddd; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); + -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +.bootstrap a.thumbnail:hover, +.bootstrap a.thumbnail:focus { + border-color: #0088cc; + -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); + -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); + box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); +} +.bootstrap .thumbnail > img { + display: block; + max-width: 100%; + margin-right: auto; + margin-left: auto; +} +.bootstrap .thumbnail .caption { + padding: 9px; + color: #555555; +} +.bootstrap .media, +.bootstrap .media-body { + overflow: hidden; + *overflow: visible; + zoom: 1; +} +.bootstrap .media, +.bootstrap .media .media { + margin-top: 15px; +} +.bootstrap .media:first-child { + margin-top: 0; +} +.bootstrap .media-object { + display: block; +} +.bootstrap .media-heading { + margin: 0 0 5px; +} +.bootstrap .media > .pull-left { + margin-right: 10px; +} +.bootstrap .media > .pull-right { + margin-left: 10px; +} +.bootstrap .media-list { + margin-left: 0; + list-style: none; +} +.bootstrap .label, +.bootstrap .badge { + display: inline-block; + padding: 2px 4px; + font-size: 11.844px; + font-weight: bold; + line-height: 14px; + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + white-space: nowrap; + vertical-align: baseline; + background-color: #999999; +} +.bootstrap .label { + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; +} +.bootstrap .badge { + padding-right: 9px; + padding-left: 9px; + -webkit-border-radius: 9px; + -moz-border-radius: 9px; + border-radius: 9px; +} +.bootstrap .label:empty, +.bootstrap .badge:empty { + display: none; +} +.bootstrap a.label:hover, +.bootstrap a.label:focus, +.bootstrap a.badge:hover, +.bootstrap a.badge:focus { + color: #ffffff; + text-decoration: none; + cursor: pointer; +} +.bootstrap .label-important, +.bootstrap .badge-important { + background-color: #b94a48; +} +.bootstrap .label-important[href], +.bootstrap .badge-important[href] { + background-color: #953b39; +} +.bootstrap .label-warning, +.bootstrap .badge-warning { + background-color: #f89406; +} +.bootstrap .label-warning[href], +.bootstrap .badge-warning[href] { + background-color: #c67605; +} +.bootstrap .label-success, +.bootstrap .badge-success { + background-color: #468847; +} +.bootstrap .label-success[href], +.bootstrap .badge-success[href] { + background-color: #356635; +} +.bootstrap .label-info, +.bootstrap .badge-info { + background-color: #3a87ad; +} +.bootstrap .label-info[href], +.bootstrap .badge-info[href] { + background-color: #2d6987; +} +.bootstrap .label-inverse, +.bootstrap .badge-inverse { + background-color: #333333; +} +.bootstrap .label-inverse[href], +.bootstrap .badge-inverse[href] { + background-color: #1a1a1a; +} +.bootstrap .btn .label, +.bootstrap .btn .badge { + position: relative; + top: -1px; +} +.bootstrap .btn-mini .label, +.bootstrap .btn-mini .badge { + top: 0; +} +@-webkit-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@-moz-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@-ms-keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +@-o-keyframes progress-bar-stripes { + from { + background-position: 0 0; + } + to { + background-position: 40px 0; + } +} +@keyframes progress-bar-stripes { + from { + background-position: 40px 0; + } + to { + background-position: 0 0; + } +} +.bootstrap .progress { + height: 20px; + margin-bottom: 20px; + overflow: hidden; + background-color: #f7f7f7; + background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); + background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); + background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); + background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); + background-repeat: repeat-x; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); +} +.bootstrap .progress .bar { + float: left; + width: 0; + height: 100%; + font-size: 12px; + color: #ffffff; + text-align: center; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #0e90d2; + background-image: -moz-linear-gradient(top, #149bdf, #0480be); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); + background-image: -webkit-linear-gradient(top, #149bdf, #0480be); + background-image: -o-linear-gradient(top, #149bdf, #0480be); + background-image: linear-gradient(to bottom, #149bdf, #0480be); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); + -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: width 0.6s ease; + -moz-transition: width 0.6s ease; + -o-transition: width 0.6s ease; + transition: width 0.6s ease; +} +.bootstrap .progress .bar + .bar { + -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); + -moz-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15); +} +.bootstrap .progress-striped .bar { + background-color: #149bdf; + background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + -webkit-background-size: 40px 40px; + -moz-background-size: 40px 40px; + -o-background-size: 40px 40px; + background-size: 40px 40px; +} +.bootstrap .progress.active .bar { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -moz-animation: progress-bar-stripes 2s linear infinite; + -ms-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite; +} +.bootstrap .progress-danger .bar, +.bootstrap .progress .bar-danger { + background-color: #dd514c; + background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); + background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); + background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); + background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); +} +.bootstrap .progress-danger.progress-striped .bar, +.bootstrap .progress-striped .bar-danger { + background-color: #ee5f5b; + background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} +.bootstrap .progress-success .bar, +.bootstrap .progress .bar-success { + background-color: #5eb95e; + background-image: -moz-linear-gradient(top, #62c462, #57a957); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); + background-image: -webkit-linear-gradient(top, #62c462, #57a957); + background-image: -o-linear-gradient(top, #62c462, #57a957); + background-image: linear-gradient(to bottom, #62c462, #57a957); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); +} +.bootstrap .progress-success.progress-striped .bar, +.bootstrap .progress-striped .bar-success { + background-color: #62c462; + background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} +.bootstrap .progress-info .bar, +.bootstrap .progress .bar-info { + background-color: #4bb1cf; + background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); + background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); + background-image: -o-linear-gradient(top, #5bc0de, #339bb9); + background-image: linear-gradient(to bottom, #5bc0de, #339bb9); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); +} +.bootstrap .progress-info.progress-striped .bar, +.bootstrap .progress-striped .bar-info { + background-color: #5bc0de; + background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} +.bootstrap .progress-warning .bar, +.bootstrap .progress .bar-warning { + background-color: #faa732; + background-image: -moz-linear-gradient(top, #fbb450, #f89406); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); + background-image: -webkit-linear-gradient(top, #fbb450, #f89406); + background-image: -o-linear-gradient(top, #fbb450, #f89406); + background-image: linear-gradient(to bottom, #fbb450, #f89406); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); +} +.bootstrap .progress-warning.progress-striped .bar, +.bootstrap .progress-striped .bar-warning { + background-color: #fbb450; + background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); + background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); +} +.bootstrap .accordion { + margin-bottom: 20px; +} +.bootstrap .accordion-group { + margin-bottom: 2px; + border: 1px solid #e5e5e5; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} +.bootstrap .accordion-heading { + border-bottom: 0; +} +.bootstrap .accordion-heading .accordion-toggle { + display: block; + padding: 8px 15px; +} +.bootstrap .accordion-toggle { + cursor: pointer; +} +.bootstrap .accordion-inner { + padding: 9px 15px; + border-top: 1px solid #e5e5e5; +} +.bootstrap .carousel { + position: relative; + margin-bottom: 20px; + line-height: 1; +} +.bootstrap .carousel-inner { + position: relative; + width: 100%; + overflow: hidden; +} +.bootstrap .carousel-inner > .item { + position: relative; + display: none; + -webkit-transition: 0.6s ease-in-out left; + -moz-transition: 0.6s ease-in-out left; + -o-transition: 0.6s ease-in-out left; + transition: 0.6s ease-in-out left; +} +.bootstrap .carousel-inner > .item > img, +.bootstrap .carousel-inner > .item > a > img { + display: block; + line-height: 1; +} +.bootstrap .carousel-inner > .active, +.bootstrap .carousel-inner > .next, +.bootstrap .carousel-inner > .prev { + display: block; +} +.bootstrap .carousel-inner > .active { + left: 0; +} +.bootstrap .carousel-inner > .next, +.bootstrap .carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; +} +.bootstrap .carousel-inner > .next { + left: 100%; +} +.bootstrap .carousel-inner > .prev { + left: -100%; +} +.bootstrap .carousel-inner > .next.left, +.bootstrap .carousel-inner > .prev.right { + left: 0; +} +.bootstrap .carousel-inner > .active.left { + left: -100%; +} +.bootstrap .carousel-inner > .active.right { + left: 100%; +} +.bootstrap .carousel-control { + position: absolute; + top: 40%; + left: 15px; + width: 40px; + height: 40px; + margin-top: -20px; + font-size: 60px; + font-weight: 100; + line-height: 30px; + color: #ffffff; + text-align: center; + background: #222222; + border: 3px solid #ffffff; + -webkit-border-radius: 23px; + -moz-border-radius: 23px; + border-radius: 23px; + opacity: 0.5; + filter: alpha(opacity=50); +} +.bootstrap .carousel-control.right { + right: 15px; + left: auto; +} +.bootstrap .carousel-control:hover, +.bootstrap .carousel-control:focus { + color: #ffffff; + text-decoration: none; + opacity: 0.9; + filter: alpha(opacity=90); +} +.bootstrap .carousel-indicators { + position: absolute; + top: 15px; + right: 15px; + z-index: 5; + margin: 0; + list-style: none; +} +.bootstrap .carousel-indicators li { + display: block; + float: left; + width: 10px; + height: 10px; + margin-left: 5px; + text-indent: -999px; + background-color: #ccc; + background-color: rgba(255, 255, 255, 0.25); + border-radius: 5px; +} +.bootstrap .carousel-indicators .active { + background-color: #fff; +} +.bootstrap .carousel-caption { + position: absolute; + right: 0; + bottom: 0; + left: 0; + padding: 15px; + background: #333333; + background: rgba(0, 0, 0, 0.75); +} +.bootstrap .carousel-caption h4, +.bootstrap .carousel-caption p { + line-height: 20px; + color: #ffffff; +} +.bootstrap .carousel-caption h4 { + margin: 0 0 5px; +} +.bootstrap .carousel-caption p { + margin-bottom: 0; +} +.bootstrap .hero-unit { + padding: 60px; + margin-bottom: 30px; + font-size: 18px; + font-weight: 200; + line-height: 30px; + color: inherit; + background-color: #eeeeee; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} +.bootstrap .hero-unit h1 { + margin-bottom: 0; + font-size: 60px; + line-height: 1; + letter-spacing: -1px; + color: inherit; +} +.bootstrap .hero-unit li { + line-height: 30px; +} +.bootstrap .pull-right { + float: right; +} +.bootstrap .pull-left { + float: left; +} +.bootstrap .hide { + display: none; +} +.bootstrap .show { + display: block; +} +.bootstrap .invisible { + visibility: hidden; +} +.bootstrap .affix { + position: fixed; +} diff --git a/servlet/src/main/resources/app/jobad/libs/css/bootstrap/img/glyphicons-halflings-white.png b/servlet/src/main/resources/app/jobad/libs/css/bootstrap/img/glyphicons-halflings-white.png new file mode 100644 index 0000000000000000000000000000000000000000..3bf6484a29d8da269f9bc874b25493a45fae3bae Binary files /dev/null and b/servlet/src/main/resources/app/jobad/libs/css/bootstrap/img/glyphicons-halflings-white.png differ diff --git a/servlet/src/main/resources/app/jobad/libs/css/bootstrap/img/glyphicons-halflings.png b/servlet/src/main/resources/app/jobad/libs/css/bootstrap/img/glyphicons-halflings.png new file mode 100644 index 0000000000000000000000000000000000000000..a9969993201f9cee63cf9f49217646347297b643 Binary files /dev/null and b/servlet/src/main/resources/app/jobad/libs/css/bootstrap/img/glyphicons-halflings.png differ diff --git a/servlet/src/main/resources/app/jobad/libs/css/libs.css b/servlet/src/main/resources/app/jobad/libs/css/libs.css new file mode 100644 index 0000000000000000000000000000000000000000..44b7aad1154f461c7108ecdde48b02e8b4fc23be --- /dev/null +++ b/servlet/src/main/resources/app/jobad/libs/css/libs.css @@ -0,0 +1,941 @@ +.bootstrap{}.bootstrap .clearfix{*zoom:1;} +.bootstrap .clearfix:before,.bootstrap .clearfix:after{display:table;line-height:0;content:"";} +.bootstrap .clearfix:after{clear:both;} +.bootstrap .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;} +.bootstrap .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;} +.bootstrap article,.bootstrap aside,.bootstrap details,.bootstrap figcaption,.bootstrap figure,.bootstrap footer,.bootstrap header,.bootstrap hgroup,.bootstrap nav,.bootstrap section{display:block;} +.bootstrap audio,.bootstrap canvas,.bootstrap video{display:inline-block;*display:inline;*zoom:1;} +.bootstrap audio:not([controls]){display:none;} +.bootstrap html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;} +.bootstrap a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;} +.bootstrap a:hover,.bootstrap a:active{outline:0;} +.bootstrap sub,.bootstrap sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline;} +.bootstrap sup{top:-0.5em;} +.bootstrap sub{bottom:-0.25em;} +.bootstrap img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic;} +.bootstrap #map_canvas img,.bootstrap .google-maps img{max-width:none;} +.bootstrap button,.bootstrap input,.bootstrap select,.bootstrap textarea{margin:0;font-size:100%;vertical-align:middle;} +.bootstrap button,.bootstrap input{*overflow:visible;line-height:normal;} +.bootstrap button::-moz-focus-inner,.bootstrap input::-moz-focus-inner{padding:0;border:0;} +.bootstrap button,.bootstrap html input[type="button"],.bootstrap input[type="reset"],.bootstrap input[type="submit"]{cursor:pointer;-webkit-appearance:button;} +.bootstrap label,.bootstrap select,.bootstrap button,.bootstrap input[type="button"],.bootstrap input[type="reset"],.bootstrap input[type="submit"],.bootstrap input[type="radio"],.bootstrap input[type="checkbox"]{cursor:pointer;} +.bootstrap input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield;} +.bootstrap input[type="search"]::-webkit-search-decoration,.bootstrap input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;} +.bootstrap textarea{overflow:auto;vertical-align:top;} +@media print{.bootstrap *{color:#000 !important;text-shadow:none !important;background:transparent !important;box-shadow:none !important;} .bootstrap a,.bootstrap a:visited{text-decoration:underline;} .bootstrap a[href]:after{content:" (" attr(href) ")";} .bootstrap abbr[title]:after{content:" (" attr(title) ")";} .bootstrap .ir a:after,.bootstrap a[href^="javascript:"]:after,.bootstrap a[href^="#"]:after{content:"";} .bootstrap pre,.bootstrap blockquote{border:1px solid #999;page-break-inside:avoid;} .bootstrap thead{display:table-header-group;} .bootstrap tr,.bootstrap img{page-break-inside:avoid;} .bootstrap img{max-width:100% !important;} @page {margin:0.5cm;}.bootstrap p,.bootstrap h2,.bootstrap h3{orphans:3;widows:3;} .bootstrap h2,.bootstrap h3{page-break-after:avoid;}}.bootstrap body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333333;background-color:#ffffff;} +.bootstrap a{color:#0088cc;text-decoration:none;} +.bootstrap a:hover,.bootstrap a:focus{color:#005580;text-decoration:underline;} +.bootstrap .img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;} +.bootstrap .img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);} +.bootstrap .img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px;} +.bootstrap .row{margin-left:-20px;*zoom:1;} +.bootstrap .row:before,.bootstrap .row:after{display:table;line-height:0;content:"";} +.bootstrap .row:after{clear:both;} +.bootstrap [class*="span"]{float:left;min-height:1px;margin-left:20px;} +.bootstrap .container,.bootstrap .navbar-static-top .container,.bootstrap .navbar-fixed-top .container,.bootstrap .navbar-fixed-bottom .container{width:940px;} +.bootstrap .span12{width:940px;} +.bootstrap .span11{width:860px;} +.bootstrap .span10{width:780px;} +.bootstrap .span9{width:700px;} +.bootstrap .span8{width:620px;} +.bootstrap .span7{width:540px;} +.bootstrap .span6{width:460px;} +.bootstrap .span5{width:380px;} +.bootstrap .span4{width:300px;} +.bootstrap .span3{width:220px;} +.bootstrap .span2{width:140px;} +.bootstrap .span1{width:60px;} +.bootstrap .offset12{margin-left:980px;} +.bootstrap .offset11{margin-left:900px;} +.bootstrap .offset10{margin-left:820px;} +.bootstrap .offset9{margin-left:740px;} +.bootstrap .offset8{margin-left:660px;} +.bootstrap .offset7{margin-left:580px;} +.bootstrap .offset6{margin-left:500px;} +.bootstrap .offset5{margin-left:420px;} +.bootstrap .offset4{margin-left:340px;} +.bootstrap .offset3{margin-left:260px;} +.bootstrap .offset2{margin-left:180px;} +.bootstrap .offset1{margin-left:100px;} +.bootstrap .row-fluid{width:100%;*zoom:1;} +.bootstrap .row-fluid:before,.bootstrap .row-fluid:after{display:table;line-height:0;content:"";} +.bootstrap .row-fluid:after{clear:both;} +.bootstrap .row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;} +.bootstrap .row-fluid [class*="span"]:first-child{margin-left:0;} +.bootstrap .row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.127659574468085%;} +.bootstrap .row-fluid .span12{width:100%;*width:99.94680851063829%;} +.bootstrap .row-fluid .span11{width:91.48936170212765%;*width:91.43617021276594%;} +.bootstrap .row-fluid .span10{width:82.97872340425532%;*width:82.92553191489361%;} +.bootstrap .row-fluid .span9{width:74.46808510638297%;*width:74.41489361702126%;} +.bootstrap .row-fluid .span8{width:65.95744680851064%;*width:65.90425531914893%;} +.bootstrap .row-fluid .span7{width:57.44680851063829%;*width:57.39361702127659%;} +.bootstrap .row-fluid .span6{width:48.93617021276595%;*width:48.88297872340425%;} +.bootstrap .row-fluid .span5{width:40.42553191489362%;*width:40.37234042553192%;} +.bootstrap .row-fluid .span4{width:31.914893617021278%;*width:31.861702127659576%;} +.bootstrap .row-fluid .span3{width:23.404255319148934%;*width:23.351063829787233%;} +.bootstrap .row-fluid .span2{width:14.893617021276595%;*width:14.840425531914894%;} +.bootstrap .row-fluid .span1{width:6.382978723404255%;*width:6.329787234042553%;} +.bootstrap .row-fluid .offset12{margin-left:104.25531914893617%;*margin-left:104.14893617021275%;} +.bootstrap .row-fluid .offset12:first-child{margin-left:102.12765957446808%;*margin-left:102.02127659574467%;} +.bootstrap .row-fluid .offset11{margin-left:95.74468085106382%;*margin-left:95.6382978723404%;} +.bootstrap .row-fluid .offset11:first-child{margin-left:93.61702127659574%;*margin-left:93.51063829787232%;} +.bootstrap .row-fluid .offset10{margin-left:87.23404255319149%;*margin-left:87.12765957446807%;} +.bootstrap .row-fluid .offset10:first-child{margin-left:85.1063829787234%;*margin-left:84.99999999999999%;} +.bootstrap .row-fluid .offset9{margin-left:78.72340425531914%;*margin-left:78.61702127659572%;} +.bootstrap .row-fluid .offset9:first-child{margin-left:76.59574468085106%;*margin-left:76.48936170212764%;} +.bootstrap .row-fluid .offset8{margin-left:70.2127659574468%;*margin-left:70.10638297872339%;} +.bootstrap .row-fluid .offset8:first-child{margin-left:68.08510638297872%;*margin-left:67.9787234042553%;} +.bootstrap .row-fluid .offset7{margin-left:61.70212765957446%;*margin-left:61.59574468085106%;} +.bootstrap .row-fluid .offset7:first-child{margin-left:59.574468085106375%;*margin-left:59.46808510638297%;} +.bootstrap .row-fluid .offset6{margin-left:53.191489361702125%;*margin-left:53.085106382978715%;} +.bootstrap .row-fluid .offset6:first-child{margin-left:51.063829787234035%;*margin-left:50.95744680851063%;} +.bootstrap .row-fluid .offset5{margin-left:44.68085106382979%;*margin-left:44.57446808510638%;} +.bootstrap .row-fluid .offset5:first-child{margin-left:42.5531914893617%;*margin-left:42.4468085106383%;} +.bootstrap .row-fluid .offset4{margin-left:36.170212765957444%;*margin-left:36.06382978723405%;} +.bootstrap .row-fluid .offset4:first-child{margin-left:34.04255319148936%;*margin-left:33.93617021276596%;} +.bootstrap .row-fluid .offset3{margin-left:27.659574468085104%;*margin-left:27.5531914893617%;} +.bootstrap .row-fluid .offset3:first-child{margin-left:25.53191489361702%;*margin-left:25.425531914893618%;} +.bootstrap .row-fluid .offset2{margin-left:19.148936170212764%;*margin-left:19.04255319148936%;} +.bootstrap .row-fluid .offset2:first-child{margin-left:17.02127659574468%;*margin-left:16.914893617021278%;} +.bootstrap .row-fluid .offset1{margin-left:10.638297872340425%;*margin-left:10.53191489361702%;} +.bootstrap .row-fluid .offset1:first-child{margin-left:8.51063829787234%;*margin-left:8.404255319148938%;} +.bootstrap [class*="span"].hide,.bootstrap .row-fluid [class*="span"].hide{display:none;} +.bootstrap [class*="span"].pull-right,.bootstrap .row-fluid [class*="span"].pull-right{float:right;} +.bootstrap .container{margin-right:auto;margin-left:auto;*zoom:1;} +.bootstrap .container:before,.bootstrap .container:after{display:table;line-height:0;content:"";} +.bootstrap .container:after{clear:both;} +.bootstrap .container-fluid{padding-right:20px;padding-left:20px;*zoom:1;} +.bootstrap .container-fluid:before,.bootstrap .container-fluid:after{display:table;line-height:0;content:"";} +.bootstrap .container-fluid:after{clear:both;} +.bootstrap p{margin:0 0 10px;} +.bootstrap .lead{margin-bottom:20px;font-size:21px;font-weight:200;line-height:30px;} +.bootstrap small{font-size:85%;} +.bootstrap strong{font-weight:bold;} +.bootstrap em{font-style:italic;} +.bootstrap cite{font-style:normal;} +.bootstrap .muted{color:#999999;} +.bootstrap a.muted:hover,.bootstrap a.muted:focus{color:#808080;} +.bootstrap .text-warning{color:#c09853;} +.bootstrap a.text-warning:hover,.bootstrap a.text-warning:focus{color:#a47e3c;} +.bootstrap .text-error{color:#b94a48;} +.bootstrap a.text-error:hover,.bootstrap a.text-error:focus{color:#953b39;} +.bootstrap .text-info{color:#3a87ad;} +.bootstrap a.text-info:hover,.bootstrap a.text-info:focus{color:#2d6987;} +.bootstrap .text-success{color:#468847;} +.bootstrap a.text-success:hover,.bootstrap a.text-success:focus{color:#356635;} +.bootstrap .text-left{text-align:left;} +.bootstrap .text-right{text-align:right;} +.bootstrap .text-center{text-align:center;} +.bootstrap h1,.bootstrap h2,.bootstrap h3,.bootstrap h4,.bootstrap h5,.bootstrap h6{margin:10px 0;font-family:inherit;font-weight:bold;line-height:20px;color:inherit;text-rendering:optimizelegibility;} +.bootstrap h1 small,.bootstrap h2 small,.bootstrap h3 small,.bootstrap h4 small,.bootstrap h5 small,.bootstrap h6 small{font-weight:normal;line-height:1;color:#999999;} +.bootstrap h1,.bootstrap h2,.bootstrap h3{line-height:40px;} +.bootstrap h1{font-size:38.5px;} +.bootstrap h2{font-size:31.5px;} +.bootstrap h3{font-size:24.5px;} +.bootstrap h4{font-size:17.5px;} +.bootstrap h5{font-size:14px;} +.bootstrap h6{font-size:11.9px;} +.bootstrap h1 small{font-size:24.5px;} +.bootstrap h2 small{font-size:17.5px;} +.bootstrap h3 small{font-size:14px;} +.bootstrap h4 small{font-size:14px;} +.bootstrap .page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eeeeee;} +.bootstrap ul,.bootstrap ol{padding:0;margin:0 0 10px 25px;} +.bootstrap ul ul,.bootstrap ul ol,.bootstrap ol ol,.bootstrap ol ul{margin-bottom:0;} +.bootstrap li{line-height:20px;} +.bootstrap ul.unstyled,.bootstrap ol.unstyled{margin-left:0;list-style:none;} +.bootstrap ul.inline,.bootstrap ol.inline{margin-left:0;list-style:none;} +.bootstrap ul.inline>li,.bootstrap ol.inline>li{display:inline-block;*display:inline;padding-right:5px;padding-left:5px;*zoom:1;} +.bootstrap dl{margin-bottom:20px;} +.bootstrap dt,.bootstrap dd{line-height:20px;} +.bootstrap dt{font-weight:bold;} +.bootstrap dd{margin-left:10px;} +.bootstrap .dl-horizontal{*zoom:1;} +.bootstrap .dl-horizontal:before,.bootstrap .dl-horizontal:after{display:table;line-height:0;content:"";} +.bootstrap .dl-horizontal:after{clear:both;} +.bootstrap .dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap;} +.bootstrap .dl-horizontal dd{margin-left:180px;} +.bootstrap hr{margin:20px 0;border:0;border-top:1px solid #eeeeee;border-bottom:1px solid #ffffff;} +.bootstrap abbr[title],.bootstrap abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999999;} +.bootstrap abbr.initialism{font-size:90%;text-transform:uppercase;} +.bootstrap blockquote{padding:0 0 0 15px;margin:0 0 20px;border-left:5px solid #eeeeee;} +.bootstrap blockquote p{margin-bottom:0;font-size:17.5px;font-weight:300;line-height:1.25;} +.bootstrap blockquote small{display:block;line-height:20px;color:#999999;} +.bootstrap blockquote small:before{content:'\2014 \00A0';} +.bootstrap blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eeeeee;border-left:0;} +.bootstrap blockquote.pull-right p,.bootstrap blockquote.pull-right small{text-align:right;} +.bootstrap blockquote.pull-right small:before{content:'';} +.bootstrap blockquote.pull-right small:after{content:'\00A0 \2014';} +.bootstrap q:before,.bootstrap q:after,.bootstrap blockquote:before,.bootstrap blockquote:after{content:"";} +.bootstrap address{display:block;margin-bottom:20px;font-style:normal;line-height:20px;} +.bootstrap code,.bootstrap pre{padding:0 3px 2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:#333333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;} +.bootstrap code{padding:2px 4px;color:#d14;white-space:nowrap;background-color:#f7f7f9;border:1px solid #e1e1e8;} +.bootstrap pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap pre.prettyprint{margin-bottom:20px;} +.bootstrap pre code{padding:0;color:inherit;white-space:pre;white-space:pre-wrap;background-color:transparent;border:0;} +.bootstrap .pre-scrollable{max-height:340px;overflow-y:scroll;} +.bootstrap form{margin:0 0 20px;} +.bootstrap fieldset{padding:0;margin:0;border:0;} +.bootstrap legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333333;border:0;border-bottom:1px solid #e5e5e5;} +.bootstrap legend small{font-size:15px;color:#999999;} +.bootstrap label,.bootstrap input,.bootstrap button,.bootstrap select,.bootstrap textarea{font-size:14px;font-weight:normal;line-height:20px;} +.bootstrap input,.bootstrap button,.bootstrap select,.bootstrap textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;} +.bootstrap label{display:block;margin-bottom:5px;} +.bootstrap select,.bootstrap textarea,.bootstrap input[type="text"],.bootstrap input[type="password"],.bootstrap input[type="datetime"],.bootstrap input[type="datetime-local"],.bootstrap input[type="date"],.bootstrap input[type="month"],.bootstrap input[type="time"],.bootstrap input[type="week"],.bootstrap input[type="number"],.bootstrap input[type="email"],.bootstrap input[type="url"],.bootstrap input[type="search"],.bootstrap input[type="tel"],.bootstrap input[type="color"],.bootstrap .uneditable-input{display:inline-block;height:20px;padding:4px 6px;margin-bottom:10px;font-size:14px;line-height:20px;color:#555555;vertical-align:middle;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap input,.bootstrap textarea,.bootstrap .uneditable-input{width:206px;} +.bootstrap textarea{height:auto;} +.bootstrap textarea,.bootstrap input[type="text"],.bootstrap input[type="password"],.bootstrap input[type="datetime"],.bootstrap input[type="datetime-local"],.bootstrap input[type="date"],.bootstrap input[type="month"],.bootstrap input[type="time"],.bootstrap input[type="week"],.bootstrap input[type="number"],.bootstrap input[type="email"],.bootstrap input[type="url"],.bootstrap input[type="search"],.bootstrap input[type="tel"],.bootstrap input[type="color"],.bootstrap .uneditable-input{background-color:#ffffff;border:1px solid #cccccc;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border linear 0.2s,box-shadow linear 0.2s;-moz-transition:border linear 0.2s,box-shadow linear 0.2s;-o-transition:border linear 0.2s,box-shadow linear 0.2s;transition:border linear 0.2s,box-shadow linear 0.2s;} +.bootstrap textarea:focus,.bootstrap input[type="text"]:focus,.bootstrap input[type="password"]:focus,.bootstrap input[type="datetime"]:focus,.bootstrap input[type="datetime-local"]:focus,.bootstrap input[type="date"]:focus,.bootstrap input[type="month"]:focus,.bootstrap input[type="time"]:focus,.bootstrap input[type="week"]:focus,.bootstrap input[type="number"]:focus,.bootstrap input[type="email"]:focus,.bootstrap input[type="url"]:focus,.bootstrap input[type="search"]:focus,.bootstrap input[type="tel"]:focus,.bootstrap input[type="color"]:focus,.bootstrap .uneditable-input:focus{border-color:rgba(82, 168, 236, 0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);} +.bootstrap input[type="radio"],.bootstrap input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;*margin-top:0;line-height:normal;} +.bootstrap input[type="file"],.bootstrap input[type="image"],.bootstrap input[type="submit"],.bootstrap input[type="reset"],.bootstrap input[type="button"],.bootstrap input[type="radio"],.bootstrap input[type="checkbox"]{width:auto;} +.bootstrap select,.bootstrap input[type="file"]{height:30px;*margin-top:4px;line-height:30px;} +.bootstrap select{width:220px;background-color:#ffffff;border:1px solid #cccccc;} +.bootstrap select[multiple],.bootstrap select[size]{height:auto;} +.bootstrap select:focus,.bootstrap input[type="file"]:focus,.bootstrap input[type="radio"]:focus,.bootstrap input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;} +.bootstrap .uneditable-input,.bootstrap .uneditable-textarea{color:#999999;cursor:not-allowed;background-color:#fcfcfc;border-color:#cccccc;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);} +.bootstrap .uneditable-input{overflow:hidden;white-space:nowrap;} +.bootstrap .uneditable-textarea{width:auto;height:auto;} +.bootstrap input:-moz-placeholder,.bootstrap textarea:-moz-placeholder{color:#999999;} +.bootstrap input:-ms-input-placeholder,.bootstrap textarea:-ms-input-placeholder{color:#999999;} +.bootstrap input::-webkit-input-placeholder,.bootstrap textarea::-webkit-input-placeholder{color:#999999;} +.bootstrap .radio,.bootstrap .checkbox{min-height:20px;padding-left:20px;} +.bootstrap .radio input[type="radio"],.bootstrap .checkbox input[type="checkbox"]{float:left;margin-left:-20px;} +.bootstrap .controls>.radio:first-child,.bootstrap .controls>.checkbox:first-child{padding-top:5px;} +.bootstrap .radio.inline,.bootstrap .checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle;} +.bootstrap .radio.inline+.radio.inline,.bootstrap .checkbox.inline+.checkbox.inline{margin-left:10px;} +.bootstrap .input-mini{width:60px;} +.bootstrap .input-small{width:90px;} +.bootstrap .input-medium{width:150px;} +.bootstrap .input-large{width:210px;} +.bootstrap .input-xlarge{width:270px;} +.bootstrap .input-xxlarge{width:530px;} +.bootstrap input[class*="span"],.bootstrap select[class*="span"],.bootstrap textarea[class*="span"],.bootstrap .uneditable-input[class*="span"],.bootstrap .row-fluid input[class*="span"],.bootstrap .row-fluid select[class*="span"],.bootstrap .row-fluid textarea[class*="span"],.bootstrap .row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0;} +.bootstrap .input-append input[class*="span"],.bootstrap .input-append .uneditable-input[class*="span"],.bootstrap .input-prepend input[class*="span"],.bootstrap .input-prepend .uneditable-input[class*="span"],.bootstrap .row-fluid input[class*="span"],.bootstrap .row-fluid select[class*="span"],.bootstrap .row-fluid textarea[class*="span"],.bootstrap .row-fluid .uneditable-input[class*="span"],.bootstrap .row-fluid .input-prepend [class*="span"],.bootstrap .row-fluid .input-append [class*="span"]{display:inline-block;} +.bootstrap input,.bootstrap textarea,.bootstrap .uneditable-input{margin-left:0;} +.bootstrap .controls-row [class*="span"]+[class*="span"]{margin-left:20px;} +.bootstrap input.span12,.bootstrap textarea.span12,.bootstrap .uneditable-input.span12{width:926px;} +.bootstrap input.span11,.bootstrap textarea.span11,.bootstrap .uneditable-input.span11{width:846px;} +.bootstrap input.span10,.bootstrap textarea.span10,.bootstrap .uneditable-input.span10{width:766px;} +.bootstrap input.span9,.bootstrap textarea.span9,.bootstrap .uneditable-input.span9{width:686px;} +.bootstrap input.span8,.bootstrap textarea.span8,.bootstrap .uneditable-input.span8{width:606px;} +.bootstrap input.span7,.bootstrap textarea.span7,.bootstrap .uneditable-input.span7{width:526px;} +.bootstrap input.span6,.bootstrap textarea.span6,.bootstrap .uneditable-input.span6{width:446px;} +.bootstrap input.span5,.bootstrap textarea.span5,.bootstrap .uneditable-input.span5{width:366px;} +.bootstrap input.span4,.bootstrap textarea.span4,.bootstrap .uneditable-input.span4{width:286px;} +.bootstrap input.span3,.bootstrap textarea.span3,.bootstrap .uneditable-input.span3{width:206px;} +.bootstrap input.span2,.bootstrap textarea.span2,.bootstrap .uneditable-input.span2{width:126px;} +.bootstrap input.span1,.bootstrap textarea.span1,.bootstrap .uneditable-input.span1{width:46px;} +.bootstrap .controls-row{*zoom:1;} +.bootstrap .controls-row:before,.bootstrap .controls-row:after{display:table;line-height:0;content:"";} +.bootstrap .controls-row:after{clear:both;} +.bootstrap .controls-row [class*="span"],.bootstrap .row-fluid .controls-row [class*="span"]{float:left;} +.bootstrap .controls-row .checkbox[class*="span"],.bootstrap .controls-row .radio[class*="span"]{padding-top:5px;} +.bootstrap input[disabled],.bootstrap select[disabled],.bootstrap textarea[disabled],.bootstrap input[readonly],.bootstrap select[readonly],.bootstrap textarea[readonly]{cursor:not-allowed;background-color:#eeeeee;} +.bootstrap input[type="radio"][disabled],.bootstrap input[type="checkbox"][disabled],.bootstrap input[type="radio"][readonly],.bootstrap input[type="checkbox"][readonly]{background-color:transparent;} +.bootstrap .control-group.warning .control-label,.bootstrap .control-group.warning .help-block,.bootstrap .control-group.warning .help-inline{color:#c09853;} +.bootstrap .control-group.warning .checkbox,.bootstrap .control-group.warning .radio,.bootstrap .control-group.warning input,.bootstrap .control-group.warning select,.bootstrap .control-group.warning textarea{color:#c09853;} +.bootstrap .control-group.warning input,.bootstrap .control-group.warning select,.bootstrap .control-group.warning textarea{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);} +.bootstrap .control-group.warning input:focus,.bootstrap .control-group.warning select:focus,.bootstrap .control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #dbc59e;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #dbc59e;} +.bootstrap .control-group.warning .input-prepend .add-on,.bootstrap .control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853;} +.bootstrap .control-group.error .control-label,.bootstrap .control-group.error .help-block,.bootstrap .control-group.error .help-inline{color:#b94a48;} +.bootstrap .control-group.error .checkbox,.bootstrap .control-group.error .radio,.bootstrap .control-group.error input,.bootstrap .control-group.error select,.bootstrap .control-group.error textarea{color:#b94a48;} +.bootstrap .control-group.error input,.bootstrap .control-group.error select,.bootstrap .control-group.error textarea{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);} +.bootstrap .control-group.error input:focus,.bootstrap .control-group.error select:focus,.bootstrap .control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #d59392;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #d59392;} +.bootstrap .control-group.error .input-prepend .add-on,.bootstrap .control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48;} +.bootstrap .control-group.success .control-label,.bootstrap .control-group.success .help-block,.bootstrap .control-group.success .help-inline{color:#468847;} +.bootstrap .control-group.success .checkbox,.bootstrap .control-group.success .radio,.bootstrap .control-group.success input,.bootstrap .control-group.success select,.bootstrap .control-group.success textarea{color:#468847;} +.bootstrap .control-group.success input,.bootstrap .control-group.success select,.bootstrap .control-group.success textarea{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);} +.bootstrap .control-group.success input:focus,.bootstrap .control-group.success select:focus,.bootstrap .control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #7aba7b;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #7aba7b;} +.bootstrap .control-group.success .input-prepend .add-on,.bootstrap .control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847;} +.bootstrap .control-group.info .control-label,.bootstrap .control-group.info .help-block,.bootstrap .control-group.info .help-inline{color:#3a87ad;} +.bootstrap .control-group.info .checkbox,.bootstrap .control-group.info .radio,.bootstrap .control-group.info input,.bootstrap .control-group.info select,.bootstrap .control-group.info textarea{color:#3a87ad;} +.bootstrap .control-group.info input,.bootstrap .control-group.info select,.bootstrap .control-group.info textarea{border-color:#3a87ad;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);} +.bootstrap .control-group.info input:focus,.bootstrap .control-group.info select:focus,.bootstrap .control-group.info textarea:focus{border-color:#2d6987;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #7ab5d3;-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #7ab5d3;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 6px #7ab5d3;} +.bootstrap .control-group.info .input-prepend .add-on,.bootstrap .control-group.info .input-append .add-on{color:#3a87ad;background-color:#d9edf7;border-color:#3a87ad;} +.bootstrap input:focus:invalid,.bootstrap textarea:focus:invalid,.bootstrap select:focus:invalid{color:#b94a48;border-color:#ee5f5b;} +.bootstrap input:focus:invalid:focus,.bootstrap textarea:focus:invalid:focus,.bootstrap select:focus:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7;} +.bootstrap .form-actions{padding:19px 20px 20px;margin-top:20px;margin-bottom:20px;background-color:#f5f5f5;border-top:1px solid #e5e5e5;*zoom:1;} +.bootstrap .form-actions:before,.bootstrap .form-actions:after{display:table;line-height:0;content:"";} +.bootstrap .form-actions:after{clear:both;} +.bootstrap .help-block,.bootstrap .help-inline{color:#595959;} +.bootstrap .help-block{display:block;margin-bottom:10px;} +.bootstrap .help-inline{display:inline-block;*display:inline;padding-left:5px;vertical-align:middle;*zoom:1;} +.bootstrap .input-append,.bootstrap .input-prepend{display:inline-block;margin-bottom:10px;font-size:0;white-space:nowrap;vertical-align:middle;} +.bootstrap .input-append input,.bootstrap .input-prepend input,.bootstrap .input-append select,.bootstrap .input-prepend select,.bootstrap .input-append .uneditable-input,.bootstrap .input-prepend .uneditable-input,.bootstrap .input-append .dropdown-menu,.bootstrap .input-prepend .dropdown-menu,.bootstrap .input-append .popover,.bootstrap .input-prepend .popover{font-size:14px;} +.bootstrap .input-append input,.bootstrap .input-prepend input,.bootstrap .input-append select,.bootstrap .input-prepend select,.bootstrap .input-append .uneditable-input,.bootstrap .input-prepend .uneditable-input{position:relative;margin-bottom:0;*margin-left:0;vertical-align:top;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;} +.bootstrap .input-append input:focus,.bootstrap .input-prepend input:focus,.bootstrap .input-append select:focus,.bootstrap .input-prepend select:focus,.bootstrap .input-append .uneditable-input:focus,.bootstrap .input-prepend .uneditable-input:focus{z-index:2;} +.bootstrap .input-append .add-on,.bootstrap .input-prepend .add-on{display:inline-block;width:auto;height:20px;min-width:16px;padding:4px 5px;font-size:14px;font-weight:normal;line-height:20px;text-align:center;text-shadow:0 1px 0 #ffffff;background-color:#eeeeee;border:1px solid #ccc;} +.bootstrap .input-append .add-on,.bootstrap .input-prepend .add-on,.bootstrap .input-append .btn,.bootstrap .input-prepend .btn,.bootstrap .input-append .btn-group>.dropdown-toggle,.bootstrap .input-prepend .btn-group>.dropdown-toggle{vertical-align:top;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .input-append .active,.bootstrap .input-prepend .active{background-color:#a9dba9;border-color:#46a546;} +.bootstrap .input-prepend .add-on,.bootstrap .input-prepend .btn{margin-right:-1px;} +.bootstrap .input-prepend .add-on:first-child,.bootstrap .input-prepend .btn:first-child{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;} +.bootstrap .input-append input,.bootstrap .input-append select,.bootstrap .input-append .uneditable-input{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;} +.bootstrap .input-append input+.btn-group .btn:last-child,.bootstrap .input-append select+.btn-group .btn:last-child,.bootstrap .input-append .uneditable-input+.btn-group .btn:last-child{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;} +.bootstrap .input-append .add-on,.bootstrap .input-append .btn,.bootstrap .input-append .btn-group{margin-left:-1px;} +.bootstrap .input-append .add-on:last-child,.bootstrap .input-append .btn:last-child,.bootstrap .input-append .btn-group:last-child>.dropdown-toggle{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;} +.bootstrap .input-prepend.input-append input,.bootstrap .input-prepend.input-append select,.bootstrap .input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .input-prepend.input-append input+.btn-group .btn,.bootstrap .input-prepend.input-append select+.btn-group .btn,.bootstrap .input-prepend.input-append .uneditable-input+.btn-group .btn{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;} +.bootstrap .input-prepend.input-append .add-on:first-child,.bootstrap .input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;} +.bootstrap .input-prepend.input-append .add-on:last-child,.bootstrap .input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;} +.bootstrap .input-prepend.input-append .btn-group:first-child{margin-left:0;} +.bootstrap input.search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;} +.bootstrap .form-search .input-append .search-query,.bootstrap .form-search .input-prepend .search-query{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .form-search .input-append .search-query{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px;} +.bootstrap .form-search .input-append .btn{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0;} +.bootstrap .form-search .input-prepend .search-query{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0;} +.bootstrap .form-search .input-prepend .btn{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px;} +.bootstrap .form-search input,.bootstrap .form-inline input,.bootstrap .form-horizontal input,.bootstrap .form-search textarea,.bootstrap .form-inline textarea,.bootstrap .form-horizontal textarea,.bootstrap .form-search select,.bootstrap .form-inline select,.bootstrap .form-horizontal select,.bootstrap .form-search .help-inline,.bootstrap .form-inline .help-inline,.bootstrap .form-horizontal .help-inline,.bootstrap .form-search .uneditable-input,.bootstrap .form-inline .uneditable-input,.bootstrap .form-horizontal .uneditable-input,.bootstrap .form-search .input-prepend,.bootstrap .form-inline .input-prepend,.bootstrap .form-horizontal .input-prepend,.bootstrap .form-search .input-append,.bootstrap .form-inline .input-append,.bootstrap .form-horizontal .input-append{display:inline-block;*display:inline;margin-bottom:0;vertical-align:middle;*zoom:1;} +.bootstrap .form-search .hide,.bootstrap .form-inline .hide,.bootstrap .form-horizontal .hide{display:none;} +.bootstrap .form-search label,.bootstrap .form-inline label,.bootstrap .form-search .btn-group,.bootstrap .form-inline .btn-group{display:inline-block;} +.bootstrap .form-search .input-append,.bootstrap .form-inline .input-append,.bootstrap .form-search .input-prepend,.bootstrap .form-inline .input-prepend{margin-bottom:0;} +.bootstrap .form-search .radio,.bootstrap .form-search .checkbox,.bootstrap .form-inline .radio,.bootstrap .form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle;} +.bootstrap .form-search .radio input[type="radio"],.bootstrap .form-search .checkbox input[type="checkbox"],.bootstrap .form-inline .radio input[type="radio"],.bootstrap .form-inline .checkbox input[type="checkbox"]{float:left;margin-right:3px;margin-left:0;} +.bootstrap .control-group{margin-bottom:10px;} +.bootstrap legend+.control-group{margin-top:20px;-webkit-margin-top-collapse:separate;} +.bootstrap .form-horizontal .control-group{margin-bottom:20px;*zoom:1;} +.bootstrap .form-horizontal .control-group:before,.bootstrap .form-horizontal .control-group:after{display:table;line-height:0;content:"";} +.bootstrap .form-horizontal .control-group:after{clear:both;} +.bootstrap .form-horizontal .control-label{float:left;width:160px;padding-top:5px;text-align:right;} +.bootstrap .form-horizontal .controls{*display:inline-block;*padding-left:20px;margin-left:180px;*margin-left:0;} +.bootstrap .form-horizontal .controls:first-child{*padding-left:180px;} +.bootstrap .form-horizontal .help-block{margin-bottom:0;} +.bootstrap .form-horizontal input+.help-block,.bootstrap .form-horizontal select+.help-block,.bootstrap .form-horizontal textarea+.help-block,.bootstrap .form-horizontal .uneditable-input+.help-block,.bootstrap .form-horizontal .input-prepend+.help-block,.bootstrap .form-horizontal .input-append+.help-block{margin-top:10px;} +.bootstrap .form-horizontal .form-actions{padding-left:180px;} +.bootstrap table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;} +.bootstrap .table{width:100%;margin-bottom:20px;} +.bootstrap .table th,.bootstrap .table td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px solid #dddddd;} +.bootstrap .table th{font-weight:bold;} +.bootstrap .table thead th{vertical-align:bottom;} +.bootstrap .table caption+thead tr:first-child th,.bootstrap .table caption+thead tr:first-child td,.bootstrap .table colgroup+thead tr:first-child th,.bootstrap .table colgroup+thead tr:first-child td,.bootstrap .table thead:first-child tr:first-child th,.bootstrap .table thead:first-child tr:first-child td{border-top:0;} +.bootstrap .table tbody+tbody{border-top:2px solid #dddddd;} +.bootstrap .table .table{background-color:#ffffff;} +.bootstrap .table-condensed th,.bootstrap .table-condensed td{padding:4px 5px;} +.bootstrap .table-bordered{border:1px solid #dddddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap .table-bordered th,.bootstrap .table-bordered td{border-left:1px solid #dddddd;} +.bootstrap .table-bordered caption+thead tr:first-child th,.bootstrap .table-bordered caption+tbody tr:first-child th,.bootstrap .table-bordered caption+tbody tr:first-child td,.bootstrap .table-bordered colgroup+thead tr:first-child th,.bootstrap .table-bordered colgroup+tbody tr:first-child th,.bootstrap .table-bordered colgroup+tbody tr:first-child td,.bootstrap .table-bordered thead:first-child tr:first-child th,.bootstrap .table-bordered tbody:first-child tr:first-child th,.bootstrap .table-bordered tbody:first-child tr:first-child td{border-top:0;} +.bootstrap .table-bordered thead:first-child tr:first-child>th:first-child,.bootstrap .table-bordered tbody:first-child tr:first-child>td:first-child,.bootstrap .table-bordered tbody:first-child tr:first-child>th:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px;} +.bootstrap .table-bordered thead:first-child tr:first-child>th:last-child,.bootstrap .table-bordered tbody:first-child tr:first-child>td:last-child,.bootstrap .table-bordered tbody:first-child tr:first-child>th:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px;} +.bootstrap .table-bordered thead:last-child tr:last-child>th:first-child,.bootstrap .table-bordered tbody:last-child tr:last-child>td:first-child,.bootstrap .table-bordered tbody:last-child tr:last-child>th:first-child,.bootstrap .table-bordered tfoot:last-child tr:last-child>td:first-child,.bootstrap .table-bordered tfoot:last-child tr:last-child>th:first-child{-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;} +.bootstrap .table-bordered thead:last-child tr:last-child>th:last-child,.bootstrap .table-bordered tbody:last-child tr:last-child>td:last-child,.bootstrap .table-bordered tbody:last-child tr:last-child>th:last-child,.bootstrap .table-bordered tfoot:last-child tr:last-child>td:last-child,.bootstrap .table-bordered tfoot:last-child tr:last-child>th:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;} +.bootstrap .table-bordered tfoot+tbody:last-child tr:last-child td:first-child{-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;} +.bootstrap .table-bordered tfoot+tbody:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomright:0;} +.bootstrap .table-bordered caption+thead tr:first-child th:first-child,.bootstrap .table-bordered caption+tbody tr:first-child td:first-child,.bootstrap .table-bordered colgroup+thead tr:first-child th:first-child,.bootstrap .table-bordered colgroup+tbody tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px;} +.bootstrap .table-bordered caption+thead tr:first-child th:last-child,.bootstrap .table-bordered caption+tbody tr:first-child td:last-child,.bootstrap .table-bordered colgroup+thead tr:first-child th:last-child,.bootstrap .table-bordered colgroup+tbody tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px;} +.bootstrap .table-striped tbody>tr:nth-child(odd)>td,.bootstrap .table-striped tbody>tr:nth-child(odd)>th{background-color:#f9f9f9;} +.bootstrap .table-hover tbody tr:hover>td,.bootstrap .table-hover tbody tr:hover>th{background-color:#f5f5f5;} +.bootstrap table td[class*="span"],.bootstrap table th[class*="span"],.bootstrap .row-fluid table td[class*="span"],.bootstrap .row-fluid table th[class*="span"]{display:table-cell;float:none;margin-left:0;} +.bootstrap .table td.span1,.bootstrap .table th.span1{float:none;width:44px;margin-left:0;} +.bootstrap .table td.span2,.bootstrap .table th.span2{float:none;width:124px;margin-left:0;} +.bootstrap .table td.span3,.bootstrap .table th.span3{float:none;width:204px;margin-left:0;} +.bootstrap .table td.span4,.bootstrap .table th.span4{float:none;width:284px;margin-left:0;} +.bootstrap .table td.span5,.bootstrap .table th.span5{float:none;width:364px;margin-left:0;} +.bootstrap .table td.span6,.bootstrap .table th.span6{float:none;width:444px;margin-left:0;} +.bootstrap .table td.span7,.bootstrap .table th.span7{float:none;width:524px;margin-left:0;} +.bootstrap .table td.span8,.bootstrap .table th.span8{float:none;width:604px;margin-left:0;} +.bootstrap .table td.span9,.bootstrap .table th.span9{float:none;width:684px;margin-left:0;} +.bootstrap .table td.span10,.bootstrap .table th.span10{float:none;width:764px;margin-left:0;} +.bootstrap .table td.span11,.bootstrap .table th.span11{float:none;width:844px;margin-left:0;} +.bootstrap .table td.span12,.bootstrap .table th.span12{float:none;width:924px;margin-left:0;} +.bootstrap .table tbody tr.success>td{background-color:#dff0d8;} +.bootstrap .table tbody tr.error>td{background-color:#f2dede;} +.bootstrap .table tbody tr.warning>td{background-color:#fcf8e3;} +.bootstrap .table tbody tr.info>td{background-color:#d9edf7;} +.bootstrap .table-hover tbody tr.success:hover>td{background-color:#d0e9c6;} +.bootstrap .table-hover tbody tr.error:hover>td{background-color:#ebcccc;} +.bootstrap .table-hover tbody tr.warning:hover>td{background-color:#faf2cc;} +.bootstrap .table-hover tbody tr.info:hover>td{background-color:#c4e3f3;} +.bootstrap [class^="icon-"],.bootstrap [class*=" icon-"]{display:inline-block;width:14px;height:14px;margin-top:1px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url("../img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat;} +.bootstrap .icon-white,.bootstrap .nav-pills>.active>a>[class^="icon-"],.bootstrap .nav-pills>.active>a>[class*=" icon-"],.bootstrap .nav-list>.active>a>[class^="icon-"],.bootstrap .nav-list>.active>a>[class*=" icon-"],.bootstrap .navbar-inverse .nav>.active>a>[class^="icon-"],.bootstrap .navbar-inverse .nav>.active>a>[class*=" icon-"],.bootstrap .dropdown-menu>li>a:hover>[class^="icon-"],.bootstrap .dropdown-menu>li>a:focus>[class^="icon-"],.bootstrap .dropdown-menu>li>a:hover>[class*=" icon-"],.bootstrap .dropdown-menu>li>a:focus>[class*=" icon-"],.bootstrap .dropdown-menu>.active>a>[class^="icon-"],.bootstrap .dropdown-menu>.active>a>[class*=" icon-"],.bootstrap .dropdown-submenu:hover>a>[class^="icon-"],.bootstrap .dropdown-submenu:focus>a>[class^="icon-"],.bootstrap .dropdown-submenu:hover>a>[class*=" icon-"],.bootstrap .dropdown-submenu:focus>a>[class*=" icon-"]{background-image:url("../img/glyphicons-halflings-white.png");} +.bootstrap .icon-glass{background-position:0 0;} +.bootstrap .icon-music{background-position:-24px 0;} +.bootstrap .icon-search{background-position:-48px 0;} +.bootstrap .icon-envelope{background-position:-72px 0;} +.bootstrap .icon-heart{background-position:-96px 0;} +.bootstrap .icon-star{background-position:-120px 0;} +.bootstrap .icon-star-empty{background-position:-144px 0;} +.bootstrap .icon-user{background-position:-168px 0;} +.bootstrap .icon-film{background-position:-192px 0;} +.bootstrap .icon-th-large{background-position:-216px 0;} +.bootstrap .icon-th{background-position:-240px 0;} +.bootstrap .icon-th-list{background-position:-264px 0;} +.bootstrap .icon-ok{background-position:-288px 0;} +.bootstrap .icon-remove{background-position:-312px 0;} +.bootstrap .icon-zoom-in{background-position:-336px 0;} +.bootstrap .icon-zoom-out{background-position:-360px 0;} +.bootstrap .icon-off{background-position:-384px 0;} +.bootstrap .icon-signal{background-position:-408px 0;} +.bootstrap .icon-cog{background-position:-432px 0;} +.bootstrap .icon-trash{background-position:-456px 0;} +.bootstrap .icon-home{background-position:0 -24px;} +.bootstrap .icon-file{background-position:-24px -24px;} +.bootstrap .icon-time{background-position:-48px -24px;} +.bootstrap .icon-road{background-position:-72px -24px;} +.bootstrap .icon-download-alt{background-position:-96px -24px;} +.bootstrap .icon-download{background-position:-120px -24px;} +.bootstrap .icon-upload{background-position:-144px -24px;} +.bootstrap .icon-inbox{background-position:-168px -24px;} +.bootstrap .icon-play-circle{background-position:-192px -24px;} +.bootstrap .icon-repeat{background-position:-216px -24px;} +.bootstrap .icon-refresh{background-position:-240px -24px;} +.bootstrap .icon-list-alt{background-position:-264px -24px;} +.bootstrap .icon-lock{background-position:-287px -24px;} +.bootstrap .icon-flag{background-position:-312px -24px;} +.bootstrap .icon-headphones{background-position:-336px -24px;} +.bootstrap .icon-volume-off{background-position:-360px -24px;} +.bootstrap .icon-volume-down{background-position:-384px -24px;} +.bootstrap .icon-volume-up{background-position:-408px -24px;} +.bootstrap .icon-qrcode{background-position:-432px -24px;} +.bootstrap .icon-barcode{background-position:-456px -24px;} +.bootstrap .icon-tag{background-position:0 -48px;} +.bootstrap .icon-tags{background-position:-25px -48px;} +.bootstrap .icon-book{background-position:-48px -48px;} +.bootstrap .icon-bookmark{background-position:-72px -48px;} +.bootstrap .icon-print{background-position:-96px -48px;} +.bootstrap .icon-camera{background-position:-120px -48px;} +.bootstrap .icon-font{background-position:-144px -48px;} +.bootstrap .icon-bold{background-position:-167px -48px;} +.bootstrap .icon-italic{background-position:-192px -48px;} +.bootstrap .icon-text-height{background-position:-216px -48px;} +.bootstrap .icon-text-width{background-position:-240px -48px;} +.bootstrap .icon-align-left{background-position:-264px -48px;} +.bootstrap .icon-align-center{background-position:-288px -48px;} +.bootstrap .icon-align-right{background-position:-312px -48px;} +.bootstrap .icon-align-justify{background-position:-336px -48px;} +.bootstrap .icon-list{background-position:-360px -48px;} +.bootstrap .icon-indent-left{background-position:-384px -48px;} +.bootstrap .icon-indent-right{background-position:-408px -48px;} +.bootstrap .icon-facetime-video{background-position:-432px -48px;} +.bootstrap .icon-picture{background-position:-456px -48px;} +.bootstrap .icon-pencil{background-position:0 -72px;} +.bootstrap .icon-map-marker{background-position:-24px -72px;} +.bootstrap .icon-adjust{background-position:-48px -72px;} +.bootstrap .icon-tint{background-position:-72px -72px;} +.bootstrap .icon-edit{background-position:-96px -72px;} +.bootstrap .icon-share{background-position:-120px -72px;} +.bootstrap .icon-check{background-position:-144px -72px;} +.bootstrap .icon-move{background-position:-168px -72px;} +.bootstrap .icon-step-backward{background-position:-192px -72px;} +.bootstrap .icon-fast-backward{background-position:-216px -72px;} +.bootstrap .icon-backward{background-position:-240px -72px;} +.bootstrap .icon-play{background-position:-264px -72px;} +.bootstrap .icon-pause{background-position:-288px -72px;} +.bootstrap .icon-stop{background-position:-312px -72px;} +.bootstrap .icon-forward{background-position:-336px -72px;} +.bootstrap .icon-fast-forward{background-position:-360px -72px;} +.bootstrap .icon-step-forward{background-position:-384px -72px;} +.bootstrap .icon-eject{background-position:-408px -72px;} +.bootstrap .icon-chevron-left{background-position:-432px -72px;} +.bootstrap .icon-chevron-right{background-position:-456px -72px;} +.bootstrap .icon-plus-sign{background-position:0 -96px;} +.bootstrap .icon-minus-sign{background-position:-24px -96px;} +.bootstrap .icon-remove-sign{background-position:-48px -96px;} +.bootstrap .icon-ok-sign{background-position:-72px -96px;} +.bootstrap .icon-question-sign{background-position:-96px -96px;} +.bootstrap .icon-info-sign{background-position:-120px -96px;} +.bootstrap .icon-screenshot{background-position:-144px -96px;} +.bootstrap .icon-remove-circle{background-position:-168px -96px;} +.bootstrap .icon-ok-circle{background-position:-192px -96px;} +.bootstrap .icon-ban-circle{background-position:-216px -96px;} +.bootstrap .icon-arrow-left{background-position:-240px -96px;} +.bootstrap .icon-arrow-right{background-position:-264px -96px;} +.bootstrap .icon-arrow-up{background-position:-289px -96px;} +.bootstrap .icon-arrow-down{background-position:-312px -96px;} +.bootstrap .icon-share-alt{background-position:-336px -96px;} +.bootstrap .icon-resize-full{background-position:-360px -96px;} +.bootstrap .icon-resize-small{background-position:-384px -96px;} +.bootstrap .icon-plus{background-position:-408px -96px;} +.bootstrap .icon-minus{background-position:-433px -96px;} +.bootstrap .icon-asterisk{background-position:-456px -96px;} +.bootstrap .icon-exclamation-sign{background-position:0 -120px;} +.bootstrap .icon-gift{background-position:-24px -120px;} +.bootstrap .icon-leaf{background-position:-48px -120px;} +.bootstrap .icon-fire{background-position:-72px -120px;} +.bootstrap .icon-eye-open{background-position:-96px -120px;} +.bootstrap .icon-eye-close{background-position:-120px -120px;} +.bootstrap .icon-warning-sign{background-position:-144px -120px;} +.bootstrap .icon-plane{background-position:-168px -120px;} +.bootstrap .icon-calendar{background-position:-192px -120px;} +.bootstrap .icon-random{width:16px;background-position:-216px -120px;} +.bootstrap .icon-comment{background-position:-240px -120px;} +.bootstrap .icon-magnet{background-position:-264px -120px;} +.bootstrap .icon-chevron-up{background-position:-288px -120px;} +.bootstrap .icon-chevron-down{background-position:-313px -119px;} +.bootstrap .icon-retweet{background-position:-336px -120px;} +.bootstrap .icon-shopping-cart{background-position:-360px -120px;} +.bootstrap .icon-folder-close{width:16px;background-position:-384px -120px;} +.bootstrap .icon-folder-open{width:16px;background-position:-408px -120px;} +.bootstrap .icon-resize-vertical{background-position:-432px -119px;} +.bootstrap .icon-resize-horizontal{background-position:-456px -118px;} +.bootstrap .icon-hdd{background-position:0 -144px;} +.bootstrap .icon-bullhorn{background-position:-24px -144px;} +.bootstrap .icon-bell{background-position:-48px -144px;} +.bootstrap .icon-certificate{background-position:-72px -144px;} +.bootstrap .icon-thumbs-up{background-position:-96px -144px;} +.bootstrap .icon-thumbs-down{background-position:-120px -144px;} +.bootstrap .icon-hand-right{background-position:-144px -144px;} +.bootstrap .icon-hand-left{background-position:-168px -144px;} +.bootstrap .icon-hand-up{background-position:-192px -144px;} +.bootstrap .icon-hand-down{background-position:-216px -144px;} +.bootstrap .icon-circle-arrow-right{background-position:-240px -144px;} +.bootstrap .icon-circle-arrow-left{background-position:-264px -144px;} +.bootstrap .icon-circle-arrow-up{background-position:-288px -144px;} +.bootstrap .icon-circle-arrow-down{background-position:-312px -144px;} +.bootstrap .icon-globe{background-position:-336px -144px;} +.bootstrap .icon-wrench{background-position:-360px -144px;} +.bootstrap .icon-tasks{background-position:-384px -144px;} +.bootstrap .icon-filter{background-position:-408px -144px;} +.bootstrap .icon-briefcase{background-position:-432px -144px;} +.bootstrap .icon-fullscreen{background-position:-456px -144px;} +.bootstrap .dropup,.bootstrap .dropdown{position:relative;} +.bootstrap .dropdown-toggle{*margin-bottom:-3px;} +.bootstrap .dropdown-toggle:active,.bootstrap .open .dropdown-toggle{outline:0;} +.bootstrap .caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000000;border-right:4px solid transparent;border-left:4px solid transparent;content:"";} +.bootstrap .dropdown .caret{margin-top:8px;margin-left:2px;} +.bootstrap .dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#ffffff;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;} +.bootstrap .dropdown-menu.pull-right{right:0;left:auto;} +.bootstrap .dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;} +.bootstrap .dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:20px;color:#333333;white-space:nowrap;} +.bootstrap .dropdown-menu>li>a:hover,.bootstrap .dropdown-menu>li>a:focus,.bootstrap .dropdown-submenu:hover>a,.bootstrap .dropdown-submenu:focus>a{color:#ffffff;text-decoration:none;background-color:#0081c2;background-image:-moz-linear-gradient(top, #0088cc, #0077b3);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));background-image:-webkit-linear-gradient(top, #0088cc, #0077b3);background-image:-o-linear-gradient(top, #0088cc, #0077b3);background-image:linear-gradient(to bottom, #0088cc, #0077b3);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);} +.bootstrap .dropdown-menu>.active>a,.bootstrap .dropdown-menu>.active>a:hover,.bootstrap .dropdown-menu>.active>a:focus{color:#ffffff;text-decoration:none;background-color:#0081c2;background-image:-moz-linear-gradient(top, #0088cc, #0077b3);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));background-image:-webkit-linear-gradient(top, #0088cc, #0077b3);background-image:-o-linear-gradient(top, #0088cc, #0077b3);background-image:linear-gradient(to bottom, #0088cc, #0077b3);background-repeat:repeat-x;outline:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);} +.bootstrap .dropdown-menu>.disabled>a,.bootstrap .dropdown-menu>.disabled>a:hover,.bootstrap .dropdown-menu>.disabled>a:focus{color:#999999;} +.bootstrap .dropdown-menu>.disabled>a:hover,.bootstrap .dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:default;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .open{*z-index:1000;} +.bootstrap .open>.dropdown-menu{display:block;} +.bootstrap .dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990;} +.bootstrap .pull-right>.dropdown-menu{right:0;left:auto;} +.bootstrap .dropup .caret,.bootstrap .navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000000;content:"";} +.bootstrap .dropup .dropdown-menu,.bootstrap .navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px;} +.bootstrap .dropdown-submenu{position:relative;} +.bootstrap .dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;} +.bootstrap .dropdown-submenu:hover>.dropdown-menu{display:block;} +.bootstrap .dropup .dropdown-submenu>.dropdown-menu{top:auto;bottom:0;margin-top:0;margin-bottom:-2px;-webkit-border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;border-radius:5px 5px 5px 0;} +.bootstrap .dropdown-submenu>a:after{display:block;float:right;width:0;height:0;margin-top:5px;margin-right:-10px;border-color:transparent;border-left-color:#cccccc;border-style:solid;border-width:5px 0 5px 5px;content:" ";} +.bootstrap .dropdown-submenu:hover>a:after{border-left-color:#ffffff;} +.bootstrap .dropdown-submenu.pull-left{float:none;} +.bootstrap .dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;} +.bootstrap .dropdown .dropdown-menu .nav-header{padding-right:20px;padding-left:20px;} +.bootstrap .typeahead{z-index:1051;margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap .well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);} +.bootstrap .well blockquote{border-color:#ddd;border-color:rgba(0, 0, 0, 0.15);} +.bootstrap .well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;} +.bootstrap .well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;} +.bootstrap .fade{opacity:0;-webkit-transition:opacity 0.15s linear;-moz-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear;} +.bootstrap .fade.in{opacity:1;} +.bootstrap .collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height 0.35s ease;-moz-transition:height 0.35s ease;-o-transition:height 0.35s ease;transition:height 0.35s ease;} +.bootstrap .collapse.in{height:auto;} +.bootstrap .close{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000000;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20);} +.bootstrap .close:hover,.bootstrap .close:focus{color:#000000;text-decoration:none;cursor:pointer;opacity:0.4;filter:alpha(opacity=40);} +.bootstrap button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;} +.bootstrap .btn{display:inline-block;*display:inline;padding:4px 12px;margin-bottom:0;*margin-left:.3em;font-size:14px;line-height:20px;color:#333333;text-align:center;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;*background-color:#e6e6e6;background-image:-moz-linear-gradient(top, #ffffff, #e6e6e6);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));background-image:-webkit-linear-gradient(top, #ffffff, #e6e6e6);background-image:-o-linear-gradient(top, #ffffff, #e6e6e6);background-image:linear-gradient(to bottom, #ffffff, #e6e6e6);background-repeat:repeat-x;border:1px solid #cccccc;*border:0;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);*zoom:1;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);} +.bootstrap .btn:hover,.bootstrap .btn:focus,.bootstrap .btn:active,.bootstrap .btn.active,.bootstrap .btn.disabled,.bootstrap .btn[disabled]{color:#333333;background-color:#e6e6e6;*background-color:#d9d9d9;} +.bootstrap .btn:active,.bootstrap .btn.active{background-color:#cccccc \9;} +.bootstrap .btn:first-child{*margin-left:0;} +.bootstrap .btn:hover,.bootstrap .btn:focus{color:#333333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position 0.1s linear;-moz-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear;} +.bootstrap .btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;} +.bootstrap .btn.active,.bootstrap .btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);} +.bootstrap .btn.disabled,.bootstrap .btn[disabled]{cursor:default;background-image:none;opacity:0.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} +.bootstrap .btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;} +.bootstrap .btn-large [class^="icon-"],.bootstrap .btn-large [class*=" icon-"]{margin-top:4px;} +.bootstrap .btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;} +.bootstrap .btn-small [class^="icon-"],.bootstrap .btn-small [class*=" icon-"]{margin-top:0;} +.bootstrap .btn-mini [class^="icon-"],.bootstrap .btn-mini [class*=" icon-"]{margin-top:-1px;} +.bootstrap .btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;} +.bootstrap .btn-block{display:block;width:100%;padding-right:0;padding-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;} +.bootstrap .btn-block+.btn-block{margin-top:5px;} +.bootstrap input[type="submit"].btn-block,.bootstrap input[type="reset"].btn-block,.bootstrap input[type="button"].btn-block{width:100%;} +.bootstrap .btn-primary.active,.bootstrap .btn-warning.active,.bootstrap .btn-danger.active,.bootstrap .btn-success.active,.bootstrap .btn-info.active,.bootstrap .btn-inverse.active{color:rgba(255, 255, 255, 0.75);} +.bootstrap .btn-primary{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#006dcc;*background-color:#0044cc;background-image:-moz-linear-gradient(top, #0088cc, #0044cc);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));background-image:-webkit-linear-gradient(top, #0088cc, #0044cc);background-image:-o-linear-gradient(top, #0088cc, #0044cc);background-image:linear-gradient(to bottom, #0088cc, #0044cc);background-repeat:repeat-x;border-color:#0044cc #0044cc #002a80;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .btn-primary:hover,.bootstrap .btn-primary:focus,.bootstrap .btn-primary:active,.bootstrap .btn-primary.active,.bootstrap .btn-primary.disabled,.bootstrap .btn-primary[disabled]{color:#ffffff;background-color:#0044cc;*background-color:#003bb3;} +.bootstrap .btn-primary:active,.bootstrap .btn-primary.active{background-color:#003399 \9;} +.bootstrap .btn-warning{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#faa732;*background-color:#f89406;background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(to bottom, #fbb450, #f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .btn-warning:hover,.bootstrap .btn-warning:focus,.bootstrap .btn-warning:active,.bootstrap .btn-warning.active,.bootstrap .btn-warning.disabled,.bootstrap .btn-warning[disabled]{color:#ffffff;background-color:#f89406;*background-color:#df8505;} +.bootstrap .btn-warning:active,.bootstrap .btn-warning.active{background-color:#c67605 \9;} +.bootstrap .btn-danger{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#da4f49;*background-color:#bd362f;background-image:-moz-linear-gradient(top, #ee5f5b, #bd362f);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));background-image:-webkit-linear-gradient(top, #ee5f5b, #bd362f);background-image:-o-linear-gradient(top, #ee5f5b, #bd362f);background-image:linear-gradient(to bottom, #ee5f5b, #bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .btn-danger:hover,.bootstrap .btn-danger:focus,.bootstrap .btn-danger:active,.bootstrap .btn-danger.active,.bootstrap .btn-danger.disabled,.bootstrap .btn-danger[disabled]{color:#ffffff;background-color:#bd362f;*background-color:#a9302a;} +.bootstrap .btn-danger:active,.bootstrap .btn-danger.active{background-color:#942a25 \9;} +.bootstrap .btn-success{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#5bb75b;*background-color:#51a351;background-image:-moz-linear-gradient(top, #62c462, #51a351);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));background-image:-webkit-linear-gradient(top, #62c462, #51a351);background-image:-o-linear-gradient(top, #62c462, #51a351);background-image:linear-gradient(to bottom, #62c462, #51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .btn-success:hover,.bootstrap .btn-success:focus,.bootstrap .btn-success:active,.bootstrap .btn-success.active,.bootstrap .btn-success.disabled,.bootstrap .btn-success[disabled]{color:#ffffff;background-color:#51a351;*background-color:#499249;} +.bootstrap .btn-success:active,.bootstrap .btn-success.active{background-color:#408140 \9;} +.bootstrap .btn-info{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#49afcd;*background-color:#2f96b4;background-image:-moz-linear-gradient(top, #5bc0de, #2f96b4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));background-image:-webkit-linear-gradient(top, #5bc0de, #2f96b4);background-image:-o-linear-gradient(top, #5bc0de, #2f96b4);background-image:linear-gradient(to bottom, #5bc0de, #2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .btn-info:hover,.bootstrap .btn-info:focus,.bootstrap .btn-info:active,.bootstrap .btn-info.active,.bootstrap .btn-info.disabled,.bootstrap .btn-info[disabled]{color:#ffffff;background-color:#2f96b4;*background-color:#2a85a0;} +.bootstrap .btn-info:active,.bootstrap .btn-info.active{background-color:#24748c \9;} +.bootstrap .btn-inverse{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#363636;*background-color:#222222;background-image:-moz-linear-gradient(top, #444444, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));background-image:-webkit-linear-gradient(top, #444444, #222222);background-image:-o-linear-gradient(top, #444444, #222222);background-image:linear-gradient(to bottom, #444444, #222222);background-repeat:repeat-x;border-color:#222222 #222222 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .btn-inverse:hover,.bootstrap .btn-inverse:focus,.bootstrap .btn-inverse:active,.bootstrap .btn-inverse.active,.bootstrap .btn-inverse.disabled,.bootstrap .btn-inverse[disabled]{color:#ffffff;background-color:#222222;*background-color:#151515;} +.bootstrap .btn-inverse:active,.bootstrap .btn-inverse.active{background-color:#080808 \9;} +.bootstrap button.btn,.bootstrap input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px;} +.bootstrap button.btn::-moz-focus-inner,.bootstrap input[type="submit"].btn::-moz-focus-inner{padding:0;border:0;} +.bootstrap button.btn.btn-large,.bootstrap input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px;} +.bootstrap button.btn.btn-small,.bootstrap input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px;} +.bootstrap button.btn.btn-mini,.bootstrap input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px;} +.bootstrap .btn-link,.bootstrap .btn-link:active,.bootstrap .btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} +.bootstrap .btn-link{color:#0088cc;cursor:pointer;border-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .btn-link:hover,.bootstrap .btn-link:focus{color:#005580;text-decoration:underline;background-color:transparent;} +.bootstrap .btn-link[disabled]:hover,.bootstrap .btn-link[disabled]:focus{color:#333333;text-decoration:none;} +.bootstrap .btn-group{position:relative;display:inline-block;*display:inline;*margin-left:.3em;font-size:0;white-space:nowrap;vertical-align:middle;*zoom:1;} +.bootstrap .btn-group:first-child{*margin-left:0;} +.bootstrap .btn-group+.btn-group{margin-left:5px;} +.bootstrap .btn-toolbar{margin-top:10px;margin-bottom:10px;font-size:0;} +.bootstrap .btn-toolbar>.btn+.btn,.bootstrap .btn-toolbar>.btn-group+.btn,.bootstrap .btn-toolbar>.btn+.btn-group{margin-left:5px;} +.bootstrap .btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .btn-group>.btn+.btn{margin-left:-1px;} +.bootstrap .btn-group>.btn,.bootstrap .btn-group>.dropdown-menu,.bootstrap .btn-group>.popover{font-size:14px;} +.bootstrap .btn-group>.btn-mini{font-size:10.5px;} +.bootstrap .btn-group>.btn-small{font-size:11.9px;} +.bootstrap .btn-group>.btn-large{font-size:17.5px;} +.bootstrap .btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px;} +.bootstrap .btn-group>.btn:last-child,.bootstrap .btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px;} +.bootstrap .btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px;} +.bootstrap .btn-group>.btn.large:last-child,.bootstrap .btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px;} +.bootstrap .btn-group>.btn:hover,.bootstrap .btn-group>.btn:focus,.bootstrap .btn-group>.btn:active,.bootstrap .btn-group>.btn.active{z-index:2;} +.bootstrap .btn-group .dropdown-toggle:active,.bootstrap .btn-group.open .dropdown-toggle{outline:0;} +.bootstrap .btn-group>.btn+.dropdown-toggle{*padding-top:5px;padding-right:8px;*padding-bottom:5px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);} +.bootstrap .btn-group>.btn-mini+.dropdown-toggle{*padding-top:2px;padding-right:5px;*padding-bottom:2px;padding-left:5px;} +.bootstrap .btn-group>.btn-small+.dropdown-toggle{*padding-top:5px;*padding-bottom:4px;} +.bootstrap .btn-group>.btn-large+.dropdown-toggle{*padding-top:7px;padding-right:12px;*padding-bottom:7px;padding-left:12px;} +.bootstrap .btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);} +.bootstrap .btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6;} +.bootstrap .btn-group.open .btn-primary.dropdown-toggle{background-color:#0044cc;} +.bootstrap .btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406;} +.bootstrap .btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f;} +.bootstrap .btn-group.open .btn-success.dropdown-toggle{background-color:#51a351;} +.bootstrap .btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4;} +.bootstrap .btn-group.open .btn-inverse.dropdown-toggle{background-color:#222222;} +.bootstrap .btn .caret{margin-top:8px;margin-left:0;} +.bootstrap .btn-large .caret{margin-top:6px;} +.bootstrap .btn-large .caret{border-top-width:5px;border-right-width:5px;border-left-width:5px;} +.bootstrap .btn-mini .caret,.bootstrap .btn-small .caret{margin-top:8px;} +.bootstrap .dropup .btn-large .caret{border-bottom-width:5px;} +.bootstrap .btn-primary .caret,.bootstrap .btn-warning .caret,.bootstrap .btn-danger .caret,.bootstrap .btn-info .caret,.bootstrap .btn-success .caret,.bootstrap .btn-inverse .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;} +.bootstrap .btn-group-vertical{display:inline-block;*display:inline;*zoom:1;} +.bootstrap .btn-group-vertical>.btn{display:block;float:none;max-width:100%;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .btn-group-vertical>.btn+.btn{margin-top:-1px;margin-left:0;} +.bootstrap .btn-group-vertical>.btn:first-child{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;} +.bootstrap .btn-group-vertical>.btn:last-child{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;} +.bootstrap .btn-group-vertical>.btn-large:first-child{-webkit-border-radius:6px 6px 0 0;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0;} +.bootstrap .btn-group-vertical>.btn-large:last-child{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;} +.bootstrap .alert{padding:8px 35px 8px 14px;margin-bottom:20px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap .alert,.bootstrap .alert h4{color:#c09853;} +.bootstrap .alert h4{margin:0;} +.bootstrap .alert .close{position:relative;top:-2px;right:-21px;line-height:20px;} +.bootstrap .alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6;} +.bootstrap .alert-success h4{color:#468847;} +.bootstrap .alert-danger,.bootstrap .alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7;} +.bootstrap .alert-danger h4,.bootstrap .alert-error h4{color:#b94a48;} +.bootstrap .alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1;} +.bootstrap .alert-info h4{color:#3a87ad;} +.bootstrap .alert-block{padding-top:14px;padding-bottom:14px;} +.bootstrap .alert-block>p,.bootstrap .alert-block>ul{margin-bottom:0;} +.bootstrap .alert-block p+p{margin-top:5px;} +.bootstrap .nav{margin-bottom:20px;margin-left:0;list-style:none;} +.bootstrap .nav>li>a{display:block;} +.bootstrap .nav>li>a:hover,.bootstrap .nav>li>a:focus{text-decoration:none;background-color:#eeeeee;} +.bootstrap .nav>li>a>img{max-width:none;} +.bootstrap .nav>.pull-right{float:right;} +.bootstrap .nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:20px;color:#999999;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);text-transform:uppercase;} +.bootstrap .nav li+.nav-header{margin-top:9px;} +.bootstrap .nav-list{padding-right:15px;padding-left:15px;margin-bottom:0;} +.bootstrap .nav-list>li>a,.bootstrap .nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);} +.bootstrap .nav-list>li>a{padding:3px 15px;} +.bootstrap .nav-list>.active>a,.bootstrap .nav-list>.active>a:hover,.bootstrap .nav-list>.active>a:focus{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.2);background-color:#0088cc;} +.bootstrap .nav-list [class^="icon-"],.bootstrap .nav-list [class*=" icon-"]{margin-right:2px;} +.bootstrap .nav-list .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;} +.bootstrap .nav-tabs,.bootstrap .nav-pills{*zoom:1;} +.bootstrap .nav-tabs:before,.bootstrap .nav-pills:before,.bootstrap .nav-tabs:after,.bootstrap .nav-pills:after{display:table;line-height:0;content:"";} +.bootstrap .nav-tabs:after,.bootstrap .nav-pills:after{clear:both;} +.bootstrap .nav-tabs>li,.bootstrap .nav-pills>li{float:left;} +.bootstrap .nav-tabs>li>a,.bootstrap .nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px;} +.bootstrap .nav-tabs{border-bottom:1px solid #ddd;} +.bootstrap .nav-tabs>li{margin-bottom:-1px;} +.bootstrap .nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:20px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;} +.bootstrap .nav-tabs>li>a:hover,.bootstrap .nav-tabs>li>a:focus{border-color:#eeeeee #eeeeee #dddddd;} +.bootstrap .nav-tabs>.active>a,.bootstrap .nav-tabs>.active>a:hover,.bootstrap .nav-tabs>.active>a:focus{color:#555555;cursor:default;background-color:#ffffff;border:1px solid #ddd;border-bottom-color:transparent;} +.bootstrap .nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;} +.bootstrap .nav-pills>.active>a,.bootstrap .nav-pills>.active>a:hover,.bootstrap .nav-pills>.active>a:focus{color:#ffffff;background-color:#0088cc;} +.bootstrap .nav-stacked>li{float:none;} +.bootstrap .nav-stacked>li>a{margin-right:0;} +.bootstrap .nav-tabs.nav-stacked{border-bottom:0;} +.bootstrap .nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .nav-tabs.nav-stacked>li:first-child>a{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-topleft:4px;} +.bootstrap .nav-tabs.nav-stacked>li:last-child>a{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-moz-border-radius-bottomleft:4px;} +.bootstrap .nav-tabs.nav-stacked>li>a:hover,.bootstrap .nav-tabs.nav-stacked>li>a:focus{z-index:2;border-color:#ddd;} +.bootstrap .nav-pills.nav-stacked>li>a{margin-bottom:3px;} +.bootstrap .nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px;} +.bootstrap .nav-tabs .dropdown-menu{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;} +.bootstrap .nav-pills .dropdown-menu{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;} +.bootstrap .nav .dropdown-toggle .caret{margin-top:6px;border-top-color:#0088cc;border-bottom-color:#0088cc;} +.bootstrap .nav .dropdown-toggle:hover .caret,.bootstrap .nav .dropdown-toggle:focus .caret{border-top-color:#005580;border-bottom-color:#005580;} +.bootstrap .nav-tabs .dropdown-toggle .caret{margin-top:8px;} +.bootstrap .nav .active .dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff;} +.bootstrap .nav-tabs .active .dropdown-toggle .caret{border-top-color:#555555;border-bottom-color:#555555;} +.bootstrap .nav>.dropdown.active>a:hover,.bootstrap .nav>.dropdown.active>a:focus{cursor:pointer;} +.bootstrap .nav-tabs .open .dropdown-toggle,.bootstrap .nav-pills .open .dropdown-toggle,.bootstrap .nav>li.dropdown.open.active>a:hover,.bootstrap .nav>li.dropdown.open.active>a:focus{color:#ffffff;background-color:#999999;border-color:#999999;} +.bootstrap .nav li.dropdown.open .caret,.bootstrap .nav li.dropdown.open.active .caret,.bootstrap .nav li.dropdown.open a:hover .caret,.bootstrap .nav li.dropdown.open a:focus .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;opacity:1;filter:alpha(opacity=100);} +.bootstrap .tabs-stacked .open>a:hover,.bootstrap .tabs-stacked .open>a:focus{border-color:#999999;} +.bootstrap .tabbable{*zoom:1;} +.bootstrap .tabbable:before,.bootstrap .tabbable:after{display:table;line-height:0;content:"";} +.bootstrap .tabbable:after{clear:both;} +.bootstrap .tab-content{overflow:auto;} +.bootstrap .tabs-below>.nav-tabs,.bootstrap .tabs-right>.nav-tabs,.bootstrap .tabs-left>.nav-tabs{border-bottom:0;} +.bootstrap .tab-content>.tab-pane,.bootstrap .pill-content>.pill-pane{display:none;} +.bootstrap .tab-content>.active,.bootstrap .pill-content>.active{display:block;} +.bootstrap .tabs-below>.nav-tabs{border-top:1px solid #ddd;} +.bootstrap .tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0;} +.bootstrap .tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;} +.bootstrap .tabs-below>.nav-tabs>li>a:hover,.bootstrap .tabs-below>.nav-tabs>li>a:focus{border-top-color:#ddd;border-bottom-color:transparent;} +.bootstrap .tabs-below>.nav-tabs>.active>a,.bootstrap .tabs-below>.nav-tabs>.active>a:hover,.bootstrap .tabs-below>.nav-tabs>.active>a:focus{border-color:transparent #ddd #ddd #ddd;} +.bootstrap .tabs-left>.nav-tabs>li,.bootstrap .tabs-right>.nav-tabs>li{float:none;} +.bootstrap .tabs-left>.nav-tabs>li>a,.bootstrap .tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px;} +.bootstrap .tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd;} +.bootstrap .tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;} +.bootstrap .tabs-left>.nav-tabs>li>a:hover,.bootstrap .tabs-left>.nav-tabs>li>a:focus{border-color:#eeeeee #dddddd #eeeeee #eeeeee;} +.bootstrap .tabs-left>.nav-tabs .active>a,.bootstrap .tabs-left>.nav-tabs .active>a:hover,.bootstrap .tabs-left>.nav-tabs .active>a:focus{border-color:#ddd transparent #ddd #ddd;*border-right-color:#ffffff;} +.bootstrap .tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd;} +.bootstrap .tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;} +.bootstrap .tabs-right>.nav-tabs>li>a:hover,.bootstrap .tabs-right>.nav-tabs>li>a:focus{border-color:#eeeeee #eeeeee #eeeeee #dddddd;} +.bootstrap .tabs-right>.nav-tabs .active>a,.bootstrap .tabs-right>.nav-tabs .active>a:hover,.bootstrap .tabs-right>.nav-tabs .active>a:focus{border-color:#ddd #ddd #ddd transparent;*border-left-color:#ffffff;} +.bootstrap .nav>.disabled>a{color:#999999;} +.bootstrap .nav>.disabled>a:hover,.bootstrap .nav>.disabled>a:focus{text-decoration:none;cursor:default;background-color:transparent;} +.bootstrap .navbar{*position:relative;*z-index:2;margin-bottom:20px;overflow:visible;} +.bootstrap .navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#fafafa;background-image:-moz-linear-gradient(top, #ffffff, #f2f2f2);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));background-image:-webkit-linear-gradient(top, #ffffff, #f2f2f2);background-image:-o-linear-gradient(top, #ffffff, #f2f2f2);background-image:linear-gradient(to bottom, #ffffff, #f2f2f2);background-repeat:repeat-x;border:1px solid #d4d4d4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);*zoom:1;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.065);-moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.065);box-shadow:0 1px 4px rgba(0, 0, 0, 0.065);} +.bootstrap .navbar-inner:before,.bootstrap .navbar-inner:after{display:table;line-height:0;content:"";} +.bootstrap .navbar-inner:after{clear:both;} +.bootstrap .navbar .container{width:auto;} +.bootstrap .nav-collapse.collapse{height:auto;overflow:visible;} +.bootstrap .navbar .brand{display:block;float:left;padding:10px 20px 10px;margin-left:-20px;font-size:20px;font-weight:200;color:#777777;text-shadow:0 1px 0 #ffffff;} +.bootstrap .navbar .brand:hover,.bootstrap .navbar .brand:focus{text-decoration:none;} +.bootstrap .navbar-text{margin-bottom:0;line-height:40px;color:#777777;} +.bootstrap .navbar-link{color:#777777;} +.bootstrap .navbar-link:hover,.bootstrap .navbar-link:focus{color:#333333;} +.bootstrap .navbar .divider-vertical{height:40px;margin:0 9px;border-right:1px solid #ffffff;border-left:1px solid #f2f2f2;} +.bootstrap .navbar .btn,.bootstrap .navbar .btn-group{margin-top:5px;} +.bootstrap .navbar .btn-group .btn,.bootstrap .navbar .input-prepend .btn,.bootstrap .navbar .input-append .btn,.bootstrap .navbar .input-prepend .btn-group,.bootstrap .navbar .input-append .btn-group{margin-top:0;} +.bootstrap .navbar-form{margin-bottom:0;*zoom:1;} +.bootstrap .navbar-form:before,.bootstrap .navbar-form:after{display:table;line-height:0;content:"";} +.bootstrap .navbar-form:after{clear:both;} +.bootstrap .navbar-form input,.bootstrap .navbar-form select,.bootstrap .navbar-form .radio,.bootstrap .navbar-form .checkbox{margin-top:5px;} +.bootstrap .navbar-form input,.bootstrap .navbar-form select,.bootstrap .navbar-form .btn{display:inline-block;margin-bottom:0;} +.bootstrap .navbar-form input[type="image"],.bootstrap .navbar-form input[type="checkbox"],.bootstrap .navbar-form input[type="radio"]{margin-top:3px;} +.bootstrap .navbar-form .input-append,.bootstrap .navbar-form .input-prepend{margin-top:5px;white-space:nowrap;} +.bootstrap .navbar-form .input-append input,.bootstrap .navbar-form .input-prepend input{margin-top:0;} +.bootstrap .navbar-search{position:relative;float:left;margin-top:5px;margin-bottom:0;} +.bootstrap .navbar-search .search-query{padding:4px 14px;margin-bottom:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;} +.bootstrap .navbar-static-top{position:static;margin-bottom:0;} +.bootstrap .navbar-static-top .navbar-inner{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .navbar-fixed-top,.bootstrap .navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0;} +.bootstrap .navbar-fixed-top .navbar-inner,.bootstrap .navbar-static-top .navbar-inner{border-width:0 0 1px;} +.bootstrap .navbar-fixed-bottom .navbar-inner{border-width:1px 0 0;} +.bootstrap .navbar-fixed-top .navbar-inner,.bootstrap .navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} +.bootstrap .navbar-static-top .container,.bootstrap .navbar-fixed-top .container,.bootstrap .navbar-fixed-bottom .container{width:940px;} +.bootstrap .navbar-fixed-top{top:0;} +.bootstrap .navbar-fixed-top .navbar-inner,.bootstrap .navbar-static-top .navbar-inner{-webkit-box-shadow:0 1px 10px rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 10px rgba(0, 0, 0, 0.1);box-shadow:0 1px 10px rgba(0, 0, 0, 0.1);} +.bootstrap .navbar-fixed-bottom{bottom:0;} +.bootstrap .navbar-fixed-bottom .navbar-inner{-webkit-box-shadow:0 -1px 10px rgba(0, 0, 0, 0.1);-moz-box-shadow:0 -1px 10px rgba(0, 0, 0, 0.1);box-shadow:0 -1px 10px rgba(0, 0, 0, 0.1);} +.bootstrap .navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0;} +.bootstrap .navbar .nav.pull-right{float:right;margin-right:0;} +.bootstrap .navbar .nav>li{float:left;} +.bootstrap .navbar .nav>li>a{float:none;padding:10px 15px 10px;color:#777777;text-decoration:none;text-shadow:0 1px 0 #ffffff;} +.bootstrap .navbar .nav .dropdown-toggle .caret{margin-top:8px;} +.bootstrap .navbar .nav>li>a:focus,.bootstrap .navbar .nav>li>a:hover{color:#333333;text-decoration:none;background-color:transparent;} +.bootstrap .navbar .nav>.active>a,.bootstrap .navbar .nav>.active>a:hover,.bootstrap .navbar .nav>.active>a:focus{color:#555555;text-decoration:none;background-color:#e5e5e5;-webkit-box-shadow:inset 0 3px 8px rgba(0, 0, 0, 0.125);-moz-box-shadow:inset 0 3px 8px rgba(0, 0, 0, 0.125);box-shadow:inset 0 3px 8px rgba(0, 0, 0, 0.125);} +.bootstrap .navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#ededed;*background-color:#e5e5e5;background-image:-moz-linear-gradient(top, #f2f2f2, #e5e5e5);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5));background-image:-webkit-linear-gradient(top, #f2f2f2, #e5e5e5);background-image:-o-linear-gradient(top, #f2f2f2, #e5e5e5);background-image:linear-gradient(to bottom, #f2f2f2, #e5e5e5);background-repeat:repeat-x;border-color:#e5e5e5 #e5e5e5 #bfbfbf;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);} +.bootstrap .navbar .btn-navbar:hover,.bootstrap .navbar .btn-navbar:focus,.bootstrap .navbar .btn-navbar:active,.bootstrap .navbar .btn-navbar.active,.bootstrap .navbar .btn-navbar.disabled,.bootstrap .navbar .btn-navbar[disabled]{color:#ffffff;background-color:#e5e5e5;*background-color:#d9d9d9;} +.bootstrap .navbar .btn-navbar:active,.bootstrap .navbar .btn-navbar.active{background-color:#cccccc \9;} +.bootstrap .navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);-moz-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);} +.bootstrap .btn-navbar .icon-bar+.icon-bar{margin-top:3px;} +.bootstrap .navbar .nav>li>.dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0, 0, 0, 0.2);content:'';} +.bootstrap .navbar .nav>li>.dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #ffffff;border-left:6px solid transparent;content:'';} +.bootstrap .navbar-fixed-bottom .nav>li>.dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0, 0, 0, 0.2);} +.bootstrap .navbar-fixed-bottom .nav>li>.dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #ffffff;border-bottom:0;} +.bootstrap .navbar .nav li.dropdown>a:hover .caret,.bootstrap .navbar .nav li.dropdown>a:focus .caret{border-top-color:#333333;border-bottom-color:#333333;} +.bootstrap .navbar .nav li.dropdown.open>.dropdown-toggle,.bootstrap .navbar .nav li.dropdown.active>.dropdown-toggle,.bootstrap .navbar .nav li.dropdown.open.active>.dropdown-toggle{color:#555555;background-color:#e5e5e5;} +.bootstrap .navbar .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#777777;border-bottom-color:#777777;} +.bootstrap .navbar .nav li.dropdown.open>.dropdown-toggle .caret,.bootstrap .navbar .nav li.dropdown.active>.dropdown-toggle .caret,.bootstrap .navbar .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#555555;border-bottom-color:#555555;} +.bootstrap .navbar .pull-right>li>.dropdown-menu,.bootstrap .navbar .nav>li>.dropdown-menu.pull-right{right:0;left:auto;} +.bootstrap .navbar .pull-right>li>.dropdown-menu:before,.bootstrap .navbar .nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto;} +.bootstrap .navbar .pull-right>li>.dropdown-menu:after,.bootstrap .navbar .nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto;} +.bootstrap .navbar .pull-right>li>.dropdown-menu .dropdown-menu,.bootstrap .navbar .nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;} +.bootstrap .navbar-inverse .navbar-inner{background-color:#1b1b1b;background-image:-moz-linear-gradient(top, #222222, #111111);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#222222), to(#111111));background-image:-webkit-linear-gradient(top, #222222, #111111);background-image:-o-linear-gradient(top, #222222, #111111);background-image:linear-gradient(to bottom, #222222, #111111);background-repeat:repeat-x;border-color:#252525;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0);} +.bootstrap .navbar-inverse .brand,.bootstrap .navbar-inverse .nav>li>a{color:#999999;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);} +.bootstrap .navbar-inverse .brand:hover,.bootstrap .navbar-inverse .nav>li>a:hover,.bootstrap .navbar-inverse .brand:focus,.bootstrap .navbar-inverse .nav>li>a:focus{color:#ffffff;} +.bootstrap .navbar-inverse .brand{color:#999999;} +.bootstrap .navbar-inverse .navbar-text{color:#999999;} +.bootstrap .navbar-inverse .nav>li>a:focus,.bootstrap .navbar-inverse .nav>li>a:hover{color:#ffffff;background-color:transparent;} +.bootstrap .navbar-inverse .nav .active>a,.bootstrap .navbar-inverse .nav .active>a:hover,.bootstrap .navbar-inverse .nav .active>a:focus{color:#ffffff;background-color:#111111;} +.bootstrap .navbar-inverse .navbar-link{color:#999999;} +.bootstrap .navbar-inverse .navbar-link:hover,.bootstrap .navbar-inverse .navbar-link:focus{color:#ffffff;} +.bootstrap .navbar-inverse .divider-vertical{border-right-color:#222222;border-left-color:#111111;} +.bootstrap .navbar-inverse .nav li.dropdown.open>.dropdown-toggle,.bootstrap .navbar-inverse .nav li.dropdown.active>.dropdown-toggle,.bootstrap .navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle{color:#ffffff;background-color:#111111;} +.bootstrap .navbar-inverse .nav li.dropdown>a:hover .caret,.bootstrap .navbar-inverse .nav li.dropdown>a:focus .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;} +.bootstrap .navbar-inverse .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#999999;border-bottom-color:#999999;} +.bootstrap .navbar-inverse .nav li.dropdown.open>.dropdown-toggle .caret,.bootstrap .navbar-inverse .nav li.dropdown.active>.dropdown-toggle .caret,.bootstrap .navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;} +.bootstrap .navbar-inverse .navbar-search .search-query{color:#ffffff;background-color:#515151;border-color:#111111;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0 rgba(255, 255, 255, 0.15);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0 rgba(255, 255, 255, 0.15);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0 rgba(255, 255, 255, 0.15);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;} +.bootstrap .navbar-inverse .navbar-search .search-query:-moz-placeholder{color:#cccccc;} +.bootstrap .navbar-inverse .navbar-search .search-query:-ms-input-placeholder{color:#cccccc;} +.bootstrap .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder{color:#cccccc;} +.bootstrap .navbar-inverse .navbar-search .search-query:focus,.bootstrap .navbar-inverse .navbar-search .search-query.focused{padding:5px 15px;color:#333333;text-shadow:0 1px 0 #ffffff;background-color:#ffffff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);box-shadow:0 0 3px rgba(0, 0, 0, 0.15);} +.bootstrap .navbar-inverse .btn-navbar{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#0e0e0e;*background-color:#040404;background-image:-moz-linear-gradient(top, #151515, #040404);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#151515), to(#040404));background-image:-webkit-linear-gradient(top, #151515, #040404);background-image:-o-linear-gradient(top, #151515, #040404);background-image:linear-gradient(to bottom, #151515, #040404);background-repeat:repeat-x;border-color:#040404 #040404 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515', endColorstr='#ff040404', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);} +.bootstrap .navbar-inverse .btn-navbar:hover,.bootstrap .navbar-inverse .btn-navbar:focus,.bootstrap .navbar-inverse .btn-navbar:active,.bootstrap .navbar-inverse .btn-navbar.active,.bootstrap .navbar-inverse .btn-navbar.disabled,.bootstrap .navbar-inverse .btn-navbar[disabled]{color:#ffffff;background-color:#040404;*background-color:#000000;} +.bootstrap .navbar-inverse .btn-navbar:active,.bootstrap .navbar-inverse .btn-navbar.active{background-color:#000000 \9;} +.bootstrap .breadcrumb{padding:8px 15px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap .breadcrumb>li{display:inline-block;*display:inline;text-shadow:0 1px 0 #ffffff;*zoom:1;} +.bootstrap .breadcrumb>li>.divider{padding:0 5px;color:#ccc;} +.bootstrap .breadcrumb>.active{color:#999999;} +.bootstrap .pagination{margin:20px 0;} +.bootstrap .pagination ul{display:inline-block;*display:inline;margin-bottom:0;margin-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*zoom:1;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);} +.bootstrap .pagination ul>li{display:inline;} +.bootstrap .pagination ul>li>a,.bootstrap .pagination ul>li>span{float:left;padding:4px 12px;line-height:20px;text-decoration:none;background-color:#ffffff;border:1px solid #dddddd;border-left-width:0;} +.bootstrap .pagination ul>li>a:hover,.bootstrap .pagination ul>li>a:focus,.bootstrap .pagination ul>.active>a,.bootstrap .pagination ul>.active>span{background-color:#f5f5f5;} +.bootstrap .pagination ul>.active>a,.bootstrap .pagination ul>.active>span{color:#999999;cursor:default;} +.bootstrap .pagination ul>.disabled>span,.bootstrap .pagination ul>.disabled>a,.bootstrap .pagination ul>.disabled>a:hover,.bootstrap .pagination ul>.disabled>a:focus{color:#999999;cursor:default;background-color:transparent;} +.bootstrap .pagination ul>li:first-child>a,.bootstrap .pagination ul>li:first-child>span{border-left-width:1px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px;} +.bootstrap .pagination ul>li:last-child>a,.bootstrap .pagination ul>li:last-child>span{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px;} +.bootstrap .pagination-centered{text-align:center;} +.bootstrap .pagination-right{text-align:right;} +.bootstrap .pagination-large ul>li>a,.bootstrap .pagination-large ul>li>span{padding:11px 19px;font-size:17.5px;} +.bootstrap .pagination-large ul>li:first-child>a,.bootstrap .pagination-large ul>li:first-child>span{-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px;} +.bootstrap .pagination-large ul>li:last-child>a,.bootstrap .pagination-large ul>li:last-child>span{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px;} +.bootstrap .pagination-mini ul>li:first-child>a,.bootstrap .pagination-small ul>li:first-child>a,.bootstrap .pagination-mini ul>li:first-child>span,.bootstrap .pagination-small ul>li:first-child>span{-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;} +.bootstrap .pagination-mini ul>li:last-child>a,.bootstrap .pagination-small ul>li:last-child>a,.bootstrap .pagination-mini ul>li:last-child>span,.bootstrap .pagination-small ul>li:last-child>span{-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;} +.bootstrap .pagination-small ul>li>a,.bootstrap .pagination-small ul>li>span{padding:2px 10px;font-size:11.9px;} +.bootstrap .pagination-mini ul>li>a,.bootstrap .pagination-mini ul>li>span{padding:0 6px;font-size:10.5px;} +.bootstrap .pager{margin:20px 0;text-align:center;list-style:none;*zoom:1;} +.bootstrap .pager:before,.bootstrap .pager:after{display:table;line-height:0;content:"";} +.bootstrap .pager:after{clear:both;} +.bootstrap .pager li{display:inline;} +.bootstrap .pager li>a,.bootstrap .pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;} +.bootstrap .pager li>a:hover,.bootstrap .pager li>a:focus{text-decoration:none;background-color:#f5f5f5;} +.bootstrap .pager .next>a,.bootstrap .pager .next>span{float:right;} +.bootstrap .pager .previous>a,.bootstrap .pager .previous>span{float:left;} +.bootstrap .pager .disabled>a,.bootstrap .pager .disabled>a:hover,.bootstrap .pager .disabled>a:focus,.bootstrap .pager .disabled>span{color:#999999;cursor:default;background-color:#fff;} +.bootstrap .modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000000;} +.bootstrap .modal-backdrop.fade{opacity:0;} +.bootstrap .modal-backdrop,.bootstrap .modal-backdrop.fade.in{opacity:0.8;filter:alpha(opacity=80);} +.bootstrap .modal{position:fixed;top:10%;left:50%;z-index:1050;width:560px;margin-left:-280px;background-color:#ffffff;border:1px solid #999;border:1px solid rgba(0, 0, 0, 0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;outline:none;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;} +.bootstrap .modal.fade{top:-25%;-webkit-transition:opacity 0.3s linear,top 0.3s ease-out;-moz-transition:opacity 0.3s linear,top 0.3s ease-out;-o-transition:opacity 0.3s linear,top 0.3s ease-out;transition:opacity 0.3s linear,top 0.3s ease-out;} +.bootstrap .modal.fade.in{top:10%;} +.bootstrap .modal-header{padding:9px 15px;border-bottom:1px solid #eee;} +.bootstrap .modal-header .close{margin-top:2px;} +.bootstrap .modal-header h3{margin:0;line-height:30px;} +.bootstrap .modal-body{position:relative;max-height:400px;padding:15px;overflow-y:auto;} +.bootstrap .modal-form{margin-bottom:0;} +.bootstrap .modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;*zoom:1;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;} +.bootstrap .modal-footer:before,.bootstrap .modal-footer:after{display:table;line-height:0;content:"";} +.bootstrap .modal-footer:after{clear:both;} +.bootstrap .modal-footer .btn+.btn{margin-bottom:0;margin-left:5px;} +.bootstrap .modal-footer .btn-group .btn+.btn{margin-left:-1px;} +.bootstrap .modal-footer .btn-block+.btn-block{margin-left:0;} +.bootstrap .tooltip{position:absolute;z-index:1030;display:block;font-size:11px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible;} +.bootstrap .tooltip.in{opacity:0.8;filter:alpha(opacity=80);} +.bootstrap .tooltip.top{padding:5px 0;margin-top:-3px;} +.bootstrap .tooltip.right{padding:0 5px;margin-left:3px;} +.bootstrap .tooltip.bottom{padding:5px 0;margin-top:3px;} +.bootstrap .tooltip.left{padding:0 5px;margin-left:-3px;} +.bootstrap .tooltip-inner{max-width:200px;padding:8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap .tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;} +.bootstrap .tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000000;border-width:5px 5px 0;} +.bootstrap .tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000000;border-width:5px 5px 5px 0;} +.bootstrap .tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000000;border-width:5px 0 5px 5px;} +.bootstrap .tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000000;border-width:0 5px 5px;} +.bootstrap .popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#ffffff;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;} +.bootstrap .popover.top{margin-top:-10px;} +.bootstrap .popover.right{margin-left:10px;} +.bootstrap .popover.bottom{margin-top:10px;} +.bootstrap .popover.left{margin-left:-10px;} +.bootstrap .popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0;} +.bootstrap .popover-title:empty{display:none;} +.bootstrap .popover-content{padding:9px 14px;} +.bootstrap .popover .arrow,.bootstrap .popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;} +.bootstrap .popover .arrow{border-width:11px;} +.bootstrap .popover .arrow:after{border-width:10px;content:"";} +.bootstrap .popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0, 0, 0, 0.25);border-bottom-width:0;} +.bootstrap .popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#ffffff;border-bottom-width:0;} +.bootstrap .popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0, 0, 0, 0.25);border-left-width:0;} +.bootstrap .popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#ffffff;border-left-width:0;} +.bootstrap .popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0, 0, 0, 0.25);border-top-width:0;} +.bootstrap .popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#ffffff;border-top-width:0;} +.bootstrap .popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0, 0, 0, 0.25);border-right-width:0;} +.bootstrap .popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#ffffff;border-right-width:0;} +.bootstrap .thumbnails{margin-left:-20px;list-style:none;*zoom:1;} +.bootstrap .thumbnails:before,.bootstrap .thumbnails:after{display:table;line-height:0;content:"";} +.bootstrap .thumbnails:after{clear:both;} +.bootstrap .row-fluid .thumbnails{margin-left:0;} +.bootstrap .thumbnails>li{float:left;margin-bottom:20px;margin-left:20px;} +.bootstrap .thumbnail{display:block;padding:4px;line-height:20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.055);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.055);box-shadow:0 1px 3px rgba(0, 0, 0, 0.055);-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;} +.bootstrap a.thumbnail:hover,.bootstrap a.thumbnail:focus{border-color:#0088cc;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);} +.bootstrap .thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto;} +.bootstrap .thumbnail .caption{padding:9px;color:#555555;} +.bootstrap .media,.bootstrap .media-body{overflow:hidden;*overflow:visible;zoom:1;} +.bootstrap .media,.bootstrap .media .media{margin-top:15px;} +.bootstrap .media:first-child{margin-top:0;} +.bootstrap .media-object{display:block;} +.bootstrap .media-heading{margin:0 0 5px;} +.bootstrap .media>.pull-left{margin-right:10px;} +.bootstrap .media>.pull-right{margin-left:10px;} +.bootstrap .media-list{margin-left:0;list-style:none;} +.bootstrap .label,.bootstrap .badge{display:inline-block;padding:2px 4px;font-size:11.844px;font-weight:bold;line-height:14px;color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);white-space:nowrap;vertical-align:baseline;background-color:#999999;} +.bootstrap .label{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;} +.bootstrap .badge{padding-right:9px;padding-left:9px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;} +.bootstrap .label:empty,.bootstrap .badge:empty{display:none;} +.bootstrap a.label:hover,.bootstrap a.label:focus,.bootstrap a.badge:hover,.bootstrap a.badge:focus{color:#ffffff;text-decoration:none;cursor:pointer;} +.bootstrap .label-important,.bootstrap .badge-important{background-color:#b94a48;} +.bootstrap .label-important[href],.bootstrap .badge-important[href]{background-color:#953b39;} +.bootstrap .label-warning,.bootstrap .badge-warning{background-color:#f89406;} +.bootstrap .label-warning[href],.bootstrap .badge-warning[href]{background-color:#c67605;} +.bootstrap .label-success,.bootstrap .badge-success{background-color:#468847;} +.bootstrap .label-success[href],.bootstrap .badge-success[href]{background-color:#356635;} +.bootstrap .label-info,.bootstrap .badge-info{background-color:#3a87ad;} +.bootstrap .label-info[href],.bootstrap .badge-info[href]{background-color:#2d6987;} +.bootstrap .label-inverse,.bootstrap .badge-inverse{background-color:#333333;} +.bootstrap .label-inverse[href],.bootstrap .badge-inverse[href]{background-color:#1a1a1a;} +.bootstrap .btn .label,.bootstrap .btn .badge{position:relative;top:-1px;} +.bootstrap .btn-mini .label,.bootstrap .btn-mini .badge{top:0;} +@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}@-o-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}.bootstrap .progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));background-image:-webkit-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-o-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:linear-gradient(to bottom, #f5f5f5, #f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);} +.bootstrap .progress .bar{float:left;width:0;height:100%;font-size:12px;color:#ffffff;text-align:center;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top, #149bdf, #0480be);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));background-image:-webkit-linear-gradient(top, #149bdf, #0480be);background-image:-o-linear-gradient(top, #149bdf, #0480be);background-image:linear-gradient(to bottom, #149bdf, #0480be);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width 0.6s ease;-moz-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease;} +.bootstrap .progress .bar+.bar{-webkit-box-shadow:inset 1px 0 0 rgba(0, 0, 0, 0.15),inset 0 -1px 0 rgba(0, 0, 0, 0.15);-moz-box-shadow:inset 1px 0 0 rgba(0, 0, 0, 0.15),inset 0 -1px 0 rgba(0, 0, 0, 0.15);box-shadow:inset 1px 0 0 rgba(0, 0, 0, 0.15),inset 0 -1px 0 rgba(0, 0, 0, 0.15);} +.bootstrap .progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px;} +.bootstrap .progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite;} +.bootstrap .progress-danger .bar,.bootstrap .progress .bar-danger{background-color:#dd514c;background-image:-moz-linear-gradient(top, #ee5f5b, #c43c35);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));background-image:-webkit-linear-gradient(top, #ee5f5b, #c43c35);background-image:-o-linear-gradient(top, #ee5f5b, #c43c35);background-image:linear-gradient(to bottom, #ee5f5b, #c43c35);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0);} +.bootstrap .progress-danger.progress-striped .bar,.bootstrap .progress-striped .bar-danger{background-color:#ee5f5b;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);} +.bootstrap .progress-success .bar,.bootstrap .progress .bar-success{background-color:#5eb95e;background-image:-moz-linear-gradient(top, #62c462, #57a957);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));background-image:-webkit-linear-gradient(top, #62c462, #57a957);background-image:-o-linear-gradient(top, #62c462, #57a957);background-image:linear-gradient(to bottom, #62c462, #57a957);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0);} +.bootstrap .progress-success.progress-striped .bar,.bootstrap .progress-striped .bar-success{background-color:#62c462;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);} +.bootstrap .progress-info .bar,.bootstrap .progress .bar-info{background-color:#4bb1cf;background-image:-moz-linear-gradient(top, #5bc0de, #339bb9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));background-image:-webkit-linear-gradient(top, #5bc0de, #339bb9);background-image:-o-linear-gradient(top, #5bc0de, #339bb9);background-image:linear-gradient(to bottom, #5bc0de, #339bb9);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0);} +.bootstrap .progress-info.progress-striped .bar,.bootstrap .progress-striped .bar-info{background-color:#5bc0de;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);} +.bootstrap .progress-warning .bar,.bootstrap .progress .bar-warning{background-color:#faa732;background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(to bottom, #fbb450, #f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);} +.bootstrap .progress-warning.progress-striped .bar,.bootstrap .progress-striped .bar-warning{background-color:#fbb450;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);} +.bootstrap .accordion{margin-bottom:20px;} +.bootstrap .accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} +.bootstrap .accordion-heading{border-bottom:0;} +.bootstrap .accordion-heading .accordion-toggle{display:block;padding:8px 15px;} +.bootstrap .accordion-toggle{cursor:pointer;} +.bootstrap .accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5;} +.bootstrap .carousel{position:relative;margin-bottom:20px;line-height:1;} +.bootstrap .carousel-inner{position:relative;width:100%;overflow:hidden;} +.bootstrap .carousel-inner>.item{position:relative;display:none;-webkit-transition:0.6s ease-in-out left;-moz-transition:0.6s ease-in-out left;-o-transition:0.6s ease-in-out left;transition:0.6s ease-in-out left;} +.bootstrap .carousel-inner>.item>img,.bootstrap .carousel-inner>.item>a>img{display:block;line-height:1;} +.bootstrap .carousel-inner>.active,.bootstrap .carousel-inner>.next,.bootstrap .carousel-inner>.prev{display:block;} +.bootstrap .carousel-inner>.active{left:0;} +.bootstrap .carousel-inner>.next,.bootstrap .carousel-inner>.prev{position:absolute;top:0;width:100%;} +.bootstrap .carousel-inner>.next{left:100%;} +.bootstrap .carousel-inner>.prev{left:-100%;} +.bootstrap .carousel-inner>.next.left,.bootstrap .carousel-inner>.prev.right{left:0;} +.bootstrap .carousel-inner>.active.left{left:-100%;} +.bootstrap .carousel-inner>.active.right{left:100%;} +.bootstrap .carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#ffffff;text-align:center;background:#222222;border:3px solid #ffffff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:0.5;filter:alpha(opacity=50);} +.bootstrap .carousel-control.right{right:15px;left:auto;} +.bootstrap .carousel-control:hover,.bootstrap .carousel-control:focus{color:#ffffff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90);} +.bootstrap .carousel-indicators{position:absolute;top:15px;right:15px;z-index:5;margin:0;list-style:none;} +.bootstrap .carousel-indicators li{display:block;float:left;width:10px;height:10px;margin-left:5px;text-indent:-999px;background-color:#ccc;background-color:rgba(255, 255, 255, 0.25);border-radius:5px;} +.bootstrap .carousel-indicators .active{background-color:#fff;} +.bootstrap .carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px;background:#333333;background:rgba(0, 0, 0, 0.75);} +.bootstrap .carousel-caption h4,.bootstrap .carousel-caption p{line-height:20px;color:#ffffff;} +.bootstrap .carousel-caption h4{margin:0 0 5px;} +.bootstrap .carousel-caption p{margin-bottom:0;} +.bootstrap .hero-unit{padding:60px;margin-bottom:30px;font-size:18px;font-weight:200;line-height:30px;color:inherit;background-color:#eeeeee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;} +.bootstrap .hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit;} +.bootstrap .hero-unit li{line-height:30px;} +.bootstrap .pull-right{float:right;} +.bootstrap .pull-left{float:left;} +.bootstrap .hide{display:none;} +.bootstrap .show{display:block;} +.bootstrap .invisible{visibility:hidden;} +.bootstrap .affix{position:fixed;} diff --git a/servlet/src/main/resources/app/jobad/libs/js/libs.js b/servlet/src/main/resources/app/jobad/libs/js/libs.js new file mode 100644 index 0000000000000000000000000000000000000000..d18b8bc31f241f09800d788433cb7cf0a5127faa --- /dev/null +++ b/servlet/src/main/resources/app/jobad/libs/js/libs.js @@ -0,0 +1,5 @@ + +/*! jQuery v2.0.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license +//@ sourceMappingURL=jquery-2.0.2.min.map +*/ +;(function(e,undefined){function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:q.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}function Z(e,t){while((e=e[t])&&1!==e.nodeType);return e}function et(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}function pt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ht(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function dt(e,t){var n=e.length,r=0;for(;n>r;r++)H.set(e[r],"globalEval",!t||H.get(t[r],"globalEval"))}function gt(e,t){var n,r,i,s,o,u,a,f;if(1===t.nodeType){if(H.hasData(e)&&(s=H.access(e),o=H.set(t,s),f=s.events)){delete o.handle,o.events={};for(i in f)for(n=0,r=f[i].length;r>n;n++)x.event.add(t,i,f[i][n])}L.hasData(e)&&(u=L.access(e),a=x.extend({},u),L.set(t,a))}}function mt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ot.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function At(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Dt.length;while(i--)if(t=Dt[i]+n,t in e)return t;return r}function Lt(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function Ht(t){return e.getComputedStyle(t,null)}function qt(e,t){var n,r,i,s=[],o=0,u=e.length;for(;u>o;o++)r=e[o],r.style&&(s[o]=H.get(r,"olddisplay"),n=r.style.display,t?(s[o]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(s[o]=H.access(r,"olddisplay",Rt(r.nodeName)))):s[o]||(i=Lt(r),(n&&"none"!==n||!i)&&H.set(r,"olddisplay",i?n:x.css(r,"display"))));for(o=0;u>o;o++)r=e[o],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?s[o]||"":"none"));return e}function Ot(e,t,n){var r=Tt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ft(e,t,n,r,i){var s=n===(r?"border":"content")?4:"width"===t?1:0,o=0;for(;4>s;s+=2)"margin"===n&&(o+=x.css(e,n+jt[s],!0,i)),r?("content"===n&&(o-=x.css(e,"padding"+jt[s],!0,i)),"margin"!==n&&(o-=x.css(e,"border"+jt[s]+"Width",!0,i))):(o+=x.css(e,"padding"+jt[s],!0,i),"padding"!==n&&(o+=x.css(e,"border"+jt[s]+"Width",!0,i)));return o}function Pt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,s=Ht(e),o=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,s);if(0>=i||null==i){if(i=vt(e,t,s),(0>i||null==i)&&(i=e.style[t]),Ct.test(i))return i;r=o&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ft(e,t,n||(o?"border":"content"),r,s)+"px"}function Rt(e){var t=o,n=Nt[e];return n||(n=Mt(e,t),"none"!==n&&n||(xt=(xt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(xt[0].contentWindow||xt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=Mt(e,t),xt.detach()),Nt[e]=n),n}function Mt(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}function _t(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||$t.test(e)?r(e,i):_t(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)_t(e+"["+i+"]",t[i],n,r)}function un(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(w)||[];if(x.isFunction(n))while(r=s[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function ln(e,t,n,r){function o(u){var a;return i[u]=!0,x.each(e[u]||[],function(e,u){var f=u(t,n,r);return"string"!=typeof f||s||i[f]?s?!(a=f):undefined:(t.dataTypes.unshift(f),o(f),!1)}),a}var i={},s=e===on;return o(t.dataTypes[0])||!i["*"]&&o("*")}function cn(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}function pn(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while("*"===a[0])a.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){a.unshift(i);break}if(a[0]in n)s=a[0];else{for(i in n){if(!a[0]||e.converters[i+" "+a[0]]){s=i;break}o||(o=i)}s=s||o}return s?(s!==a[0]&&a.unshift(s),n[s]):undefined}function fn(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift())if("*"===s)s=a;else if("*"!==a&&a!==s){if(o=f[a+" "+s]||f["* "+s],!o)for(i in f)if(u=i.split(" "),u[1]===s&&(o=f[a+" "+u[0]]||f["* "+u[0]])){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}return{state:"success",data:t}}function En(){return setTimeout(function(){xn=undefined}),xn=x.now()}function Sn(e,t,n){var r,i=(Nn[t]||[]).concat(Nn["*"]),s=0,o=i.length;for(;o>s;s++)if(r=i[s].call(n,t,e))return r}function jn(e,t,n){var r,i,s=0,o=kn.length,u=x.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=xn||En(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;a>o;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),1>s&&a?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:xn||En(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;for(Dn(l,f.opts.specialEasing);o>s;s++)if(r=kn[s].call(f,e,l,f.opts))return r;return x.map(l,Sn,f),x.isFunction(f.opts.start)&&f.opts.start.call(e,f),x.fx.timer(x.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Dn(e,t){var n,r,i,s,o;for(n in e)if(r=x.camelCase(n),i=t[r],s=e[n],x.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=x.cssHooks[r],o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}function An(e,t,n){var r,i,s,o,u,a,f=this,l={},c=e.style,h=e.nodeType&&Lt(e),p=H.get(e,"fxshow");n.queue||(u=x._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,x.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[c.overflow,c.overflowX,c.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(c.display="inline-block")),n.overflow&&(c.overflow="hidden",f.always(function(){c.overflow=n.overflow[0],c.overflowX=n.overflow[1],c.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],wn.exec(i)){if(delete t[r],s=s||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!p||p[r]===undefined)continue;h=!0}l[r]=p&&p[r]||x.style(e,r)}if(!x.isEmptyObject(l)){p?"hidden"in p&&(h=p.hidden):p=H.access(e,"fxshow",{}),s&&(p.hidden=!h),h?x(e).show():f.done(function(){x(e).hide()}),f.done(function(){var t;H.remove(e,"fxshow");for(t in l)x.style(e,t,l[t])});for(r in l)o=Sn(h?p[r]:0,r,f),r in p||(p[r]=o.start,h&&(o.end=o.start,o.start="width"===r||"height"===r?1:0))}}function Ln(e,t,n,r,i){return new Ln.prototype.init(e,t,n,r,i)}function Hn(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=jt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function qn(e){return x.isWindow(e)?e:9===e.nodeType&&e.defaultView}var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.2",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:p,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;for("boolean"==typeof o&&(f=o,o=arguments[1]||{},u=2),"object"==typeof o||x.isFunction(o)||(o={}),a===u&&(o=this,--u);a>u;u++)if(null!=(e=arguments[u]))for(t in e)n=o[t],r=e[t],o!==r&&(f&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,s=n&&x.isArray(n)?n:[]):s=n&&x.isPlainObject(n)?n:{},o[t]=x.extend(f,s,r)):r!==undefined&&(o[t]=r));return o},x.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=j(e);if(n){if(o){for(;s>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(o){for(;s>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;for(n=!!n;o>s;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,t,n){var r,i=0,s=e.length,o=j(e),u=[];if(o)for(;s>i;i++)r=t(e[i],i,n),null!=r&&(u[u.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(u[u.length]=r);return f.apply([],u)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,s,o){var u=0,a=e.length,f=null==n;if("object"===x.type(n)){i=!0;for(u in n)x.access(e,t,u,n[u],!0,s,o)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(o=!0),f&&(o?(t.call(e,r),t=null):(f=t,t=function(e,t,n){return f.call(x(e),n)})),t))for(;a>u;u++)t(e[u],n,o?r:r.call(e[u],u,t(e[u],n)));return i?e:f?t.call(e):a?t(e[0],n):s},now:Date.now,swap:function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});t=x(o),function(e,t){function ot(e,t,n,i){var s,o,u,a,f,l,p,m,g,E;if((t?t.ownerDocument||t:w)!==h&&c(t),t=t||h,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(d&&!i){if(s=Z.exec(e))if(u=s[1]){if(9===a){if(o=t.getElementById(u),!o||!o.parentNode)return n;if(o.id===u)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(u))&&y(t,o)&&o.id===u)return n.push(o),n}else{if(s[2])return H.apply(n,t.getElementsByTagName(e)),n;if((u=s[3])&&r.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(u)),n}if(r.qsa&&(!v||!v.test(e))){if(m=p=b,g=t,E=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){l=bt(e),(p=t.getAttribute("id"))?m=p.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",f=l.length;while(f--)l[f]=m+wt(l[f]);g=$.test(e)&&t.parentNode||t,E=l.join(",")}if(E)try{return H.apply(n,g.querySelectorAll(E)),n}catch(S){}finally{p||t.removeAttribute("id")}}}return Lt(e.replace(W,"$1"),t,n,i)}function ut(e){return Y.test(e+"")}function at(){function t(n,r){return e.push(n+=" ")>s.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function ft(e){return e[b]=!0,e}function lt(e){var t=h.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t,n){e=e.split("|");var r,i=e.length,o=n?null:t;while(i--)(r=s.attrHandle[e[i]])&&r!==t||(s.attrHandle[e[i]]=o)}function ht(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:e[t]===!0?t.toLowerCase():null}function pt(e,t){return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}function dt(e){return"input"===e.nodeName.toLowerCase()?e.defaultValue:t}function vt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function mt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function gt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function yt(e){return ft(function(t){return t=+t,ft(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function bt(e,t){var n,r,i,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=s.preFilter;while(u){(!n||(r=X.exec(u)))&&(r&&(u=u.slice(r[0].length)||u),a.push(i=[])),n=!1,(r=V.exec(u))&&(n=r.shift(),i.push({value:n,type:r[0].replace(W," ")}),u=u.slice(n.length));for(o in s.filter)!(r=G[o].exec(u))||f[o]&&!(r=f[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),u=u.slice(n.length));if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)}function wt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function Et(e,t,n){var r=t.dir,s=n&&"parentNode"===r,o=S++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||s)return e(t,n,i)}:function(t,n,u){var a,f,l,c=E+" "+o;if(u){while(t=t[r])if((1===t.nodeType||s)&&e(t,n,u))return!0}else while(t=t[r])if(1===t.nodeType||s)if(l=t[b]||(t[b]={}),(f=l[r])&&f[0]===c){if((a=f[1])===!0||a===i)return a===!0}else if(f=l[r]=[c],f[1]=e(t,n,u)||i,f[1]===!0)return!0}}function St(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=null!=t;for(;a>u;u++)(s=e[u])&&(!n||n(s,r,i))&&(o.push(s),f&&t.push(u));return o}function Tt(e,t,n,r,i,s){return r&&!r[b]&&(r=Tt(r)),i&&!i[b]&&(i=Tt(i,s)),ft(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||kt(t||"*",u.nodeType?[u]:u,[]),m=!e||!s&&t?v:xt(v,h,e,u,a),g=n?i||(s?e:d||r)?[]:o:m;if(n&&n(m,g,u,a),r){f=xt(g,p),r(f,[],u,a),l=f.length;while(l--)(c=f[l])&&(g[p[l]]=!(m[p[l]]=c))}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?j.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=xt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):H.apply(o,g)})}function Nt(e){var t,n,r,i=e.length,o=s.relative[e[0].type],u=o||s.relative[" "],a=o?1:0,l=Et(function(e){return e===t},u,!0),c=Et(function(e){return j.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;i>a;a++)if(n=s.relative[e[a].type])h=[Et(St(h),n)];else{if(n=s.filter[e[a].type].apply(null,e[a].matches),n[b]){for(r=++a;i>r;r++)if(s.relative[e[r].type])break;return Tt(a>1&&St(h),a>1&&wt(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(W,"$1"),n,r>a&&Nt(e.slice(a,r)),i>r&&Nt(e=e.slice(r)),i>r&&wt(e))}h.push(n)}return St(h)}function Ct(e,t){var n=0,r=t.length>0,o=e.length>0,u=function(u,a,l,c,p){var d,v,m,g=[],y=0,b="0",w=u&&[],S=null!=p,x=f,T=u||o&&s.find.TAG("*",p&&a.parentNode||a),N=E+=null==x?1:Math.random()||.1;for(S&&(f=a!==h&&a,i=n);null!=(d=T[b]);b++){if(o&&d){v=0;while(m=e[v++])if(m(d,a,l)){c.push(d);break}S&&(E=N,i=++n)}r&&((d=!m&&d)&&y--,u&&w.push(d))}if(y+=b,r&&b!==y){v=0;while(m=t[v++])m(w,g,a,l);if(u){if(y>0)while(b--)w[b]||g[b]||(g[b]=D.call(c));g=xt(g)}H.apply(c,g),S&&!u&&g.length>0&&y+t.length>1&&ot.uniqueSort(c)}return S&&(E=N,f=x),w};return r?ft(u):u}function kt(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function Lt(e,t,n,i){var o,u,f,l,c,h=bt(e);if(!i&&1===h.length){if(u=h[0]=h[0].slice(0),u.length>2&&"ID"===(f=u[0]).type&&r.getById&&9===t.nodeType&&d&&s.relative[u[1].type]){if(t=(s.find.ID(f.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(u.shift().value.length)}o=G.needsContext.test(e)?0:u.length;while(o--){if(f=u[o],s.relative[l=f.type])break;if((c=s.find[l])&&(i=c(f.matches[0].replace(rt,it),$.test(u[0].type)&&t.parentNode||t))){if(u.splice(o,1),e=i.length&&wt(u),!e)return H.apply(n,i),n;break}}}return a(e,h)(i,t,!d,n,$.test(e)),n}function At(){}var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b="sizzle"+ -(new Date),w=e.document,E=0,S=0,T=at(),N=at(),C=at(),k=!1,L=function(){return 0},A=typeof t,O=1<<31,M={}.hasOwnProperty,_=[],D=_.pop,P=_.push,H=_.push,B=_.slice,j=_.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=q.replace("w","w#"),U="\\["+I+"*("+q+")"+I+"*(?:([*^$|!~]?=)"+I+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+R+")|)|)"+I+"*\\]",z=":("+q+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+U.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),X=RegExp("^"+I+"*,"+I+"*"),V=RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),$=RegExp(I+"*[+~]"),J=RegExp("="+I+"*([^\\]'\"]*)"+I+"*\\]","g"),K=RegExp(z),Q=RegExp("^"+R+"$"),G={ID:RegExp("^#("+q+")"),CLASS:RegExp("^\\.("+q+")"),TAG:RegExp("^("+q.replace("w","w*")+")"),ATTR:RegExp("^"+U),PSEUDO:RegExp("^"+z),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:RegExp("^(?:"+F+")$","i"),needsContext:RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{H.apply(_=B.call(w.childNodes),w.childNodes),_[w.childNodes.length].nodeType}catch(st){H={apply:_.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}u=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=ot.support={},c=ot.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.parentWindow;return n!==h&&9===n.nodeType&&n.documentElement?(h=n,p=n.documentElement,d=!u(n),i&&i.frameElement&&i.attachEvent("onbeforeunload",function(){c()}),r.attributes=lt(function(e){return e.innerHTML="<a href='#'></a>",ct("type|href|height|width",pt,"#"===e.firstChild.getAttribute("href")),ct(F,ht,null==e.getAttribute("disabled")),e.className="i",!e.getAttribute("className")}),r.input=lt(function(e){return e.innerHTML="<input>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}),ct("value",dt,r.attributes&&r.input),r.getElementsByTagName=lt(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=lt(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=lt(function(e){return p.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(s.find.ID=function(e,t){if(typeof t.getElementById!==A&&d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete s.find.ID,s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),s.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){while(n=s[i++])1===n.nodeType&&r.push(n);return r}return s},s.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==A&&d?n.getElementsByClassName(e):t},m=[],v=[],(r.qsa=ut(n.querySelectorAll))&&(lt(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||v.push("\\["+I+"*(?:value|"+F+")"),e.querySelectorAll(":checked").length||v.push(":checked")}),lt(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&v.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(r.matchesSelector=ut(g=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&<(function(e){r.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),m.push("!=",z)}),v=v.length&&RegExp(v.join("|")),m=m.length&&RegExp(m.join("|")),y=ut(p.contains)||p.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},r.sortDetached=lt(function(e){return 1&e.compareDocumentPosition(n.createElement("div"))}),L=p.compareDocumentPosition?function(e,t){if(e===t)return k=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||y(w,e)?-1:t===n||y(w,t)?1:l?j.call(l,e)-j.call(l,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,s=e.parentNode,o=t.parentNode,u=[e],a=[t];if(e===t)return k=!0,0;if(!s||!o)return e===n?-1:t===n?1:s?-1:o?1:l?j.call(l,e)-j.call(l,t):0;if(s===o)return vt(e,t);r=e;while(r=r.parentNode)u.unshift(r);r=t;while(r=r.parentNode)a.unshift(r);while(u[i]===a[i])i++;return i?vt(u[i],a[i]):u[i]===w?-1:a[i]===w?1:0},n):h},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&c(e),t=t.replace(J,"='$1']"),!(!r.matchesSelector||!d||m&&m.test(t)||v&&v.test(t)))try{var n=g.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return ot(t,h,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==h&&c(e),y(e,t)},ot.attr=function(e,n){(e.ownerDocument||e)!==h&&c(e);var i=s.attrHandle[n.toLowerCase()],o=i&&M.call(s.attrHandle,n.toLowerCase())?i(e,n,!d):t;return o===t?r.attributes||!d?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,n=[],i=0,s=0;if(k=!r.detectDuplicates,l=!r.sortStable&&e.slice(0),e.sort(L),k){while(t=e[s++])t===e[s]&&(i=n.push(s));while(i--)e.splice(n[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},s=ot.selectors={cacheLength:50,createPseudo:ft,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&K.test(r)&&(n=bt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;d=v="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){l=m[b]||(m[b]={}),f=l[e]||[],p=f[0]===E&&f[1],h=f[0]===E&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(1===c.nodeType&&++h&&c===t){l[e]=[E,p,h];break}}else if(y&&(f=(t[b]||(t[b]={}))[e])&&f[0]===E)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++h&&(y&&((c[b]||(c[b]={}))[e]=[E,h]),c===t))break;return h-=i,h===r||0===h%r&&h/r>=0}}},PSEUDO:function(e,t){var n,r=s.pseudos[e]||s.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?ft(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=j.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ft(function(e){var t=[],n=[],r=a(e.replace(W,"$1"));return r[b]?ft(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)(s=o[u])&&(e[u]=!(t[u]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:ft(function(e){return function(t){return ot(e,t).length>0}}),contains:ft(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ft(function(e){return Q.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:yt(function(){return[0]}),last:yt(function(e,t){return[t-1]}),eq:yt(function(e,t,n){return[0>n?n+t:n]}),even:yt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:yt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:yt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:yt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[n]=mt(n);for(n in{submit:!0,reset:!0})s.pseudos[n]=gt(n);a=ot.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=bt(e)),n=t.length;while(n--)s=Nt(t[n]),s[b]?r.push(s):i.push(s);s=C(e,Ct(i,r))}return s};s.pseudos.nth=s.pseudos.eq;At.prototype=s.filters=s.pseudos,s.setFilters=new At,r.sortStable=b.split("").sort(L).join("")===b,c(),[0,0].sort(L),r.detectDuplicates=k,x.find=ot,x.expr=ot.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ot.uniqueSort,x.text=ot.getText,x.isXMLDoc=ot.isXML,x.contains=ot.contains}(e);var D={};x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(h){for(t=e.memory&&h,n=!0,o=i||0,i=0,s=u.length,r=!0;u&&s>o;o++)if(u[o].apply(h[0],h[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,u&&(a?a.length&&f(a.shift()):t?u=[]:l.disable())},l={add:function(){if(u){var n=u.length;(function o(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&l.has(n)||u.push(n):n&&n.length&&"string"!==r&&o(n)})})(arguments),r?s=u.length:t&&(i=n,f(t))}return this},remove:function(){return u&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,u,n))>-1)u.splice(n,1),r&&(s>=n&&s--,o>=n&&o--)}),this},has:function(e){return e?x.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],s=0,this},disable:function(){return u=a=t=undefined,this},disabled:function(){return!u},lock:function(){return a=undefined,t||l.disable(),this},locked:function(){return!a},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||n&&!a||(r?a.push(t):f(t)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,s){var o=s[0],u=x.isFunction(e[t])&&e[t];i[s[1]](function(){var e=u&&u.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===r?n.promise():this,u?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[1^e][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,s=1===i?e:x.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1)for(u=Array(r),a=Array(r),f=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i;return i||s.resolveWith(f,n),s.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),u=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=u.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(u,null!=u.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),u.removeChild(n))}),t):t}({});var L,H,q=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),s=this.cache[i];if("string"==typeof t)s[t]=n;else if(x.isEmptyObject(s))x.extend(this.cache[i],t);else for(r in t)s[r]=t[r];return s},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,s=this.key(e),o=this.cache[s];if(t===undefined)this.cache[s]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):(i=x.camelCase(t),t in o?r=[t,i]:(r=i,r=r in o?[r]:r.match(w)||[])),n=r.length;while(n--)delete o[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},L=new F,H=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||H.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return H.access(e,t,n)},_removeData:function(e,t){H.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],s=0,o=null;if(e===undefined){if(this.length&&(o=L.get(i),1===i.nodeType&&!H.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>s;s++)r=n[s].name,0===r.indexOf("data-")&&(r=x.camelCase(r.slice(5)),P(i,r,o[r]));H.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=H.get(e,t),n&&(!r||x.isArray(n)?r=H.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),s=x._queueHooks(e,t),o=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return H.get(e,n)||H.access(e,n,{empty:x.Callbacks("once memory").add(function(){H.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),s=this,o=this.length,u=function(){--r||i.resolveWith(s,[s])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(o--)n=H.get(s[o],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var R,M,W=/[\t\r\n\f]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,s,o=0,u=this.length,a="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(w)||[];u>o;o++)if(n=this[o],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){s=0;while(i=t[s++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(w)||[];u>o;o++)if(n=this[o],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var s,o=0,u=x(this),a=t,f=e.match(w)||[];while(s=f[o++])a=i?a:!u.hasClass(s),u[a?"addClass":"removeClass"](s)}else(n===r||"boolean"===n)&&(this.className&&H.set(this,"__className__",this.className),this.className=this.className||e===!1?"":H.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,x(this).val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s="select-one"===e.type||0>i,o=s?null:[],u=s?i+1:r.length,a=0>i?u:s?i:0;for(;u>a;a++)if(n=r[a],!(!n.selected&&a!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),s)return t;o.push(t)}return o},set:function(e,t){var n,r,i=e.options,s=x.makeArray(t),o=i.length;while(o--)r=i[o],(r.selected=x.inArray(x(r).val(),s)>=0)&&(n=!0);return n||(e.selectedIndex=-1),s}}},attr:function(e,t,n){var i,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===r?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(s=i.get(e,t))?s:(s=x.find.attr(e,t),null==s?undefined:s):null!==n?i&&"set"in i&&(s=i.set(e,n,t))!==undefined?s:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(w);if(s&&1===e.nodeType)while(n=s[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return s=1!==o||!x.isXMLDoc(e),s&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],s=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,s}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;x.event={global:{},add:function(e,t,n,i,s){var o,u,a,f,l,c,h,p,d,v,m,g=H.get(e);if(g){n.handler&&(o=n,n=o.handler,s=o.selector),n.guid||(n.guid=x.guid++),(f=g.events)||(f=g.events={}),(u=g.handle)||(u=g.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(u.elem,arguments)},u.elem=e),t=(t||"").match(w)||[""],l=t.length;while(l--)a=X.exec(t[l])||[],d=m=a[1],v=(a[2]||"").split(".").sort(),d&&(h=x.event.special[d]||{},d=(s?h.delegateType:h.bindType)||d,h=x.event.special[d]||{},c=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&x.expr.match.needsContext.test(s),namespace:v.join(".")},o),(p=f[d])||(p=f[d]=[],p.delegateCount=0,h.setup&&h.setup.call(e,i,v,u)!==!1||e.addEventListener&&e.addEventListener(d,u,!1)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),s?p.splice(p.delegateCount++,0,c):p.push(c),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=H.hasData(e)&&H.get(e);if(m&&(a=m.events)){t=(t||"").match(w)||[""],f=t.length;while(f--)if(u=X.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort(),p){c=x.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,h=a[p]||[],u=u[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;while(s--)l=h[s],!i&&v!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(s,1),l.selector&&h.delegateCount--,c.remove&&c.remove.call(e,l));o&&!h.length&&(c.teardown&&c.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,p,m.handle),delete a[p])}else for(p in a)x.event.remove(e,p+t[f],n,r,!0);x.isEmptyObject(a)&&(delete m.handle,H.remove(e,"events"))}},trigger:function(t,n,r,i){var s,u,a,f,l,c,h,p=[r||o],d=y.call(t,"type")?t.type:t,v=y.call(t,"namespace")?t.namespace.split("."):[];if(u=a=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(v=d.split("."),d=v.shift(),v.sort()),l=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),h=x.event.special[d]||{},i||!h.trigger||h.trigger.apply(r,n)!==!1)){if(!i&&!h.noBubble&&!x.isWindow(r)){for(f=h.delegateType||d,_.test(f+d)||(u=u.parentNode);u;u=u.parentNode)p.push(u),a=u;a===(r.ownerDocument||o)&&p.push(a.defaultView||a.parentWindow||e)}s=0;while((u=p[s++])&&!t.isPropagationStopped())t.type=s>1?f:h.bindType||d,c=(H.get(u,"events")||{})[t.type]&&H.get(u,"handle"),c&&c.apply(u,n),c=l&&u[l],c&&x.acceptData(u)&&c.apply&&c.apply(u,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),n)!==!1||!x.acceptData(r)||l&&x.isFunction(r[d])&&!x.isWindow(r)&&(a=r[l],a&&(r[l]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,a&&(r[l]=a)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,s,o=[],u=d.call(arguments),a=(H.get(this,"events")||{})[e.type]||[],f=x.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,e)!==!1){o=x.event.handlers.call(this,e,a),t=0;while((i=o[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((s=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(s.namespace))&&(e.handleObj=s,e.data=s.data,r=((x.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,u),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return f.postDispatch&&f.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,s,o=[],u=t.delegateCount,a=e.target;if(u&&a.nodeType&&(!e.button||"click"!==e.type))for(;a!==this;a=a.parentNode||this)if(a.disabled!==!0||"click"!==e.type){for(r=[],n=0;u>n;n++)s=t[n],i=s.selector+" ",r[i]===undefined&&(r[i]=s.needsContext?x(i,this).index(a)>=0:x.find(i,this,null,[a]).length),r[i]&&r.push(s);r.length&&o.push({elem:a,handlers:r})}return t.length>u&&o.push({elem:this,handlers:t.slice(u)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,s=e,u=this.fixHooks[i];u||(this.fixHooks[i]=u=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=u.props?this.props.concat(u.props):this.props,e=new x.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),u.filter?u.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var s,o;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(s=r,r=function(e){return x().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=/^(?:parents|prev(?:Until|All))/,Q=x.expr.match.needsContext,K={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(et(this,e||[],!0))},filter:function(e){return this.pushStack(et(this,e||[],!1))},is:function(e){return!!et(this,"string"==typeof e&&Q.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,s=[],o=Q.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(o?o.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=s.push(n);break}return this.pushStack(s.length>1?x.unique(s):s)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(K[e]||x.unique(i),J.test(e)&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,nt=/<([\w:]+)/,rt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,ot=/^(?:checkbox|radio)$/i,st=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^$|\/(?:java|ecma)script/i,ut=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ct={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ct.optgroup=ct.option,ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(mt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&dt(mt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!ct[(nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(tt,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(mt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=f.apply([],e);var r,i,s,o,u,a,l=0,c=this.length,h=this,p=c-1,d=e[0],v=x.isFunction(d);if(v||!(1>=c||"string"!=typeof d||x.support.checkClone)&&st.test(d))return this.each(function(r){var i=h.eq(r);v&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(s=x.map(mt(r,"script"),ft),o=s.length;c>l;l++)u=r,l!==p&&(u=x.clone(u,!0,!0),o&&x.merge(s,mt(u,"script"))),t.call(this[l],u,l);if(o)for(a=s[s.length-1].ownerDocument,x.map(s,ht),l=0;o>l;l++)u=s[l],at.test(u.type||"")&&!H.access(u,"globalEval")&&x.contains(a,u)&&(u.src?x._evalUrl(u.src):x.globalEval(u.textContent.replace(lt,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),s=i.length-1,o=0;for(;s>=o;o++)n=o===s?this:this.clone(!0),x(i[o])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,s,o,u=e.cloneNode(!0),a=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=mt(u),s=mt(e),r=0,i=s.length;i>r;r++)yt(s[r],o[r]);if(t)if(n)for(s=s||mt(e),o=o||mt(u),r=0,i=s.length;i>r;r++)gt(s[r],o[r]);else gt(e,u);return o=mt(u,"script"),o.length>0&&dt(o,!a&&mt(e,"script")),u},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l=0,c=e.length,h=t.createDocumentFragment(),p=[];for(;c>l;l++)if(i=e[l],i||0===i)if("object"===x.type(i))x.merge(p,i.nodeType?[i]:i);else if(rt.test(i)){s=s||h.appendChild(t.createElement("div")),o=(nt.exec(i)||["",""])[1].toLowerCase(),u=ct[o]||ct._default,s.innerHTML=u[1]+i.replace(tt,"<$1></$2>")+u[2],f=u[0];while(f--)s=s.firstChild;x.merge(p,s.childNodes),s=h.firstChild,s.textContent=""}else p.push(t.createTextNode(i));h.textContent="",l=0;while(i=p[l++])if((!r||-1===x.inArray(i,r))&&(a=x.contains(i.ownerDocument,i),s=mt(h.appendChild(i),"script"),a&&dt(s),n)){f=0;while(i=s[f++])at.test(i.type||"")&&n.push(i)}return h},cleanData:function(e){var t,n,r,i,s,o,u=x.event.special,a=0;for(;(n=e[a])!==undefined;a++){if(F.accepts(n)&&(s=n[H.expando],s&&(t=H.cache[s]))){if(r=Object.keys(t.events||{}),r.length)for(o=0;(i=r[o])!==undefined;o++)u[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);H.cache[s]&&delete H.cache[s]}delete L.cache[n[L.expando]]}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var vt,xt,bt=/^(none|table(?!-c[ea]).+)/,wt=/^margin/,Tt=RegExp("^("+b+")(.*)$","i"),Ct=RegExp("^("+b+")(?!px)[a-z%]+$","i"),kt=RegExp("^([+-])=("+b+")","i"),Nt={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:0,fontWeight:400},jt=["Top","Right","Bottom","Left"],Dt=["Webkit","O","Moz","ms"];x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,s={},o=0;if(x.isArray(t)){for(r=Ht(e),i=t.length;i>o;o++)s[t[o]]=x.css(e,t[o],!1,r);return s}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return qt(this,!0)},hide:function(){return qt(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:Lt(this))?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,o,u=x.camelCase(t),a=e.style;return t=x.cssProps[u]||(x.cssProps[u]=At(a,u)),o=x.cssHooks[t]||x.cssHooks[u],n===undefined?o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:a[t]:(s=typeof n,"string"===s&&(i=kt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),s="number"),null==n||"number"===s&&isNaN(n)||("number"!==s||x.cssNumber[u]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(a[t]="inherit"),o&&"set"in o&&(n=o.set(e,n,r))===undefined||(a[t]=n)),undefined)}},css:function(e,t,n,r){var i,s,o,u=x.camelCase(t);return t=x.cssProps[u]||(x.cssProps[u]=At(e.style,u)),o=x.cssHooks[t]||x.cssHooks[u],o&&"get"in o&&(i=o.get(e,!0,n)),i===undefined&&(i=vt(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(s=parseFloat(i),n===!0||x.isNumeric(s)?s||0:i):i}}),vt=function(e,t,n){var r,i,s,o=n||Ht(e),u=o?o.getPropertyValue(t)||o[t]:undefined,a=e.style;return o&&(""!==u||x.contains(e.ownerDocument,e)||(u=x.style(e,t)),Ct.test(u)&&wt.test(t)&&(r=a.width,i=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=u,u=o.width,a.width=r,a.minWidth=i,a.maxWidth=s)),u};x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&bt.test(x.css(e,"display"))?x.swap(e,Et,function(){return Pt(e,t,r)}):Pt(e,t,r):undefined},set:function(e,n,r){var i=r&&Ht(e);return Ot(e,n,r?Ft(e,t,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,t){return t?x.swap(e,{display:"inline-block"},vt,[e,"marginRight"]):undefined}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,t){x.cssHooks[t]={get:function(e,n){return n?(n=vt(e,t),Ct.test(n)?x(e).position()[t]+"px":n):undefined}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},s="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+jt[r]+t]=s[r]||s[r-2]||s[0];return i}},wt.test(e)||(x.cssHooks[e+t].set=Ot)});var Wt=/%20/g,$t=/\[\]$/,Bt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&zt.test(this.nodeName)&&!It.test(e)&&(this.checked||!ot.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(Bt,"\r\n")}}):{name:t.name,value:n.replace(Bt,"\r\n")}}).get()}}),x.param=function(e,t){var n,r=[],i=function(e,t){t=x.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(n in e)_t(n,e[n],t,i);return r.join("&").replace(Wt,"+")};x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Xt,Ut,Yt=x.now(),Vt=/\?/,Gt=/#.*$/,Jt=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zt=/^(?:GET|HEAD)$/,en=/^\/\//,tn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,nn=x.fn.load,rn={},on={},sn="*/".concat("*");try{Ut=i.href}catch(an){Ut=o.createElement("a"),Ut.href="",Ut=Ut.href}Xt=tn.exec(Ut.toLowerCase())||[];x.fn.load=function(e,t,n){if("string"!=typeof e&&nn)return nn.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(" ");return u>=0&&(r=e.slice(u),e=e.slice(0,u)),x.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),o.length>0&&x.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){s=arguments,o.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,s||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ut,type:"GET",isLocal:Kt.test(Xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?cn(cn(e,x.ajaxSettings),t):cn(x.ajaxSettings,e)},ajaxPrefilter:un(rn),ajaxTransport:un(on),ajax:function(e,t){function T(e,t,s,u){var f,m,g,b,w,S=t;2!==y&&(y=2,o&&clearTimeout(o),n=undefined,i=u||"",E.readyState=e>0?4:0,f=e>=200&&300>e||304===e,s&&(b=pn(l,E,s)),b=fn(l,b,E,f),f?(l.ifModified&&(w=E.getResponseHeader("Last-Modified"),w&&(x.lastModified[r]=w),w=E.getResponseHeader("etag"),w&&(x.etag[r]=w)),204===e||"HEAD"===l.type?S="nocontent":304===e?S="notmodified":(S=b.state,m=b.data,g=b.error,f=!g)):(g=S,(e||!S)&&(S="error",0>e&&(e=0))),E.status=e,E.statusText=(t||S)+"",f?p.resolveWith(c,[m,S,E]):p.rejectWith(c,[E,S,g]),E.statusCode(v),v=undefined,a&&h.trigger(f?"ajaxSuccess":"ajaxError",[E,l,f?m:g]),d.fireWith(c,[E,S]),a&&(h.trigger("ajaxComplete",[E,l]),--x.active||x.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var n,r,i,s,o,u,a,f,l=x.ajaxSetup({},t),c=l.context||l,h=l.context&&(c.nodeType||c.jquery)?x(c):x.event,p=x.Deferred(),d=x.Callbacks("once memory"),v=l.statusCode||{},m={},g={},y=0,b="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!s){s={};while(t=Qt.exec(i))s[t[1].toLowerCase()]=t[2]}t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return y||(e=g[n]=g[n]||e,m[e]=t),this},overrideMimeType:function(e){return y||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>y)for(t in e)v[t]=[v[t],e[t]];else E.always(e[E.status]);return this},abort:function(e){var t=e||b;return n&&n.abort(t),T(0,t),this}};if(p.promise(E).complete=d.add,E.success=E.done,E.error=E.fail,l.url=((e||l.url||Ut)+"").replace(Gt,"").replace(en,Xt[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=x.trim(l.dataType||"*").toLowerCase().match(w)||[""],null==l.crossDomain&&(u=tn.exec(l.url.toLowerCase()),l.crossDomain=!(!u||u[1]===Xt[1]&&u[2]===Xt[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(Xt[3]||("http:"===Xt[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=x.param(l.data,l.traditional)),ln(rn,l,t,E),2===y)return E;a=l.global,a&&0===x.active++&&x.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Zt.test(l.type),r=l.url,l.hasContent||(l.data&&(r=l.url+=(Vt.test(r)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Jt.test(r)?r.replace(Jt,"$1_="+Yt++):r+(Vt.test(r)?"&":"?")+"_="+Yt++)),l.ifModified&&(x.lastModified[r]&&E.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&E.setRequestHeader("If-None-Match",x.etag[r])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&E.setRequestHeader("Content-Type",l.contentType),E.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+sn+"; q=0.01":""):l.accepts["*"]);for(f in l.headers)E.setRequestHeader(f,l.headers[f]);if(l.beforeSend&&(l.beforeSend.call(c,E,l)===!1||2===y))return E.abort();b="abort";for(f in{success:1,error:1,complete:1})E[f](l[f]);if(n=ln(on,l,t,E)){E.readyState=1,a&&h.trigger("ajaxSend",[E,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){E.abort("timeout")},l.timeout));try{y=1,n.send(m,T)}catch(S){if(!(2>y))throw S;T(-1,S)}}else T(-1,"No Transport");return E},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,undefined,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,r,i){return x.isFunction(n)&&(i=i||r,r=n,n=undefined),x.ajax({url:e,type:t,dataType:i,data:n,success:r})}});x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=x("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),o.head.appendChild(t[0])},abort:function(){n&&n()}}}});var hn=[],dn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=hn.pop()||x.expando+"_"+Yt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(t,n,r){var i,s,o,u=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");return u||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=x.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(Vt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||x.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){o=arguments},r.always(function(){e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,hn.push(i)),o&&x.isFunction(s)&&s(o[0]),o=s=undefined}),"script"):undefined}),x.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var gn=x.ajaxSettings.xhr(),mn={0:200,1223:204},yn=0,vn={};e.ActiveXObject&&x(e).on("unload",function(){for(var e in vn)vn[e]();vn=undefined}),x.support.cors=!!gn&&"withCredentials"in gn,x.support.ajax=gn=!!gn,x.ajaxTransport(function(e){var t;return x.support.cors||gn&&!e.crossDomain?{send:function(n,r){var i,s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete vn[s],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?r(o.status||404,o.statusText):r(mn[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:undefined,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=vn[s=yn++]=t("abort"),o.send(e.hasContent&&e.data||null)},abort:function(){t&&t()}}:undefined});var xn,bn,wn=/^(?:toggle|show|hide)$/,Tn=RegExp("^(?:([+-])=|)("+b+")([a-z%]*)$","i"),Cn=/queueHooks$/,kn=[An],Nn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Tn.exec(t),s=i&&i[3]||(x.cssNumber[e]?"":"px"),o=(x.cssNumber[e]||"px"!==s&&+r)&&Tn.exec(x.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,x.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&1!==u&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};x.Animation=x.extend(jn,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Nn[n]=Nn[n]||[],Nn[n].unshift(t)},prefilter:function(e,t){t?kn.unshift(e):kn.push(e)}});x.Tween=Ln,Ln.prototype={constructor:Ln,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(x.cssNumber[n]?"":"px")},cur:function(){var e=Ln.propHooks[this.prop];return e&&e.get?e.get(this):Ln.propHooks._default.get(this)},run:function(e){var t,n=Ln.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ln.propHooks._default.set(this),this}},Ln.prototype.init.prototype=Ln.prototype,Ln.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ln.propHooks.scrollTop=Ln.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Hn(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Lt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),s=x.speed(t,n,r),o=function(){var t=jn(this,x.extend({},e),s);(i||H.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=undefined),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",s=x.timers,o=H.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&Cn.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=H.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=x.timers,o=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});x.each({slideDown:Hn("show"),slideUp:Hn("hide"),slideToggle:Hn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=Ln.prototype.init,x.fx.tick=function(){var e,t=x.timers,n=0;for(xn=x.now();t.length>n;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||x.fx.stop(),xn=undefined},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){bn||(bn=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(bn),bn=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===undefined?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,i=this[0],s={top:0,left:0},o=i&&i.ownerDocument;if(o)return t=o.documentElement,x.contains(t,i)?(typeof i.getBoundingClientRect!==r&&(s=i.getBoundingClientRect()),n=qn(o),{top:s.top+n.pageYOffset-t.clientTop,left:s.left+n.pageXOffset-t.clientLeft}):s},x.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=x.css(e,"position"),c=x(e),h={};"static"===l&&(e.style.position="relative"),u=c.offset(),s=x.css(e,"top"),a=x.css(e,"left"),f=("absolute"===l||"fixed"===l)&&(s+a).indexOf("auto")>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),x.isFunction(t)&&(t=t.call(e,n,u)),null!=t.top&&(h.top=t.top-u.top+o),null!=t.left&&(h.left=t.left-u.left+i),"using"in t?t.using.call(e,h):c.css(h)}},x.fn.extend({position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===x.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(r=e.offset()),r.top+=x.css(e[0],"borderTopWidth",!0),r.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-x.css(n,"marginTop",!0),left:t.left-r.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;x.fn[t]=function(i){return x.access(this,function(t,i,s){var o=qn(t);return s===undefined?o?o[n]:t[i]:(o?o.scrollTo(r?e.pageXOffset:s,r?s:e.pageYOffset):t[i]=s,undefined)},t,i,arguments.length,null)}});x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(r,i){var s=arguments.length&&(n||"boolean"!=typeof r),o=n||(r===!0||i===!0?"margin":"border");return x.access(this,function(t,n,r){var i;return x.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===undefined?x.css(t,n,o):x.style(t,n,r,o)},t,s?r:undefined,s,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=x)})(window);!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t){if(e.style[n]!==undefined){return t[n]}}}();return e&&{end:e}}()})}(window.jQuery);!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;if(!r){r=n.attr("href");r=r&&r.replace(/.*(?=#[^\s]*$)/,"")}i=e(r);t&&t.preventDefault();i.length||(i=n.hasClass("alert")?n:n.parent());i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in");e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");if(!i)r.data("alert",i=new n(this));if(typeof t=="string")i[t].call(r)})};e.fn.alert.Constructor=n;e.fn.alert.noConflict=function(){e.fn.alert=r;return this};e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery);!function(e){"use strict";var t=function(t,n){this.$element=e(t);this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e=e+"Text";r.resetText||n.data("resetText",n[i]());n[i](r[e]||this.options[e]);setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)};t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active");this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;if(!i)r.data("button",i=new t(this,s));if(n=="toggle")i.toggle();else if(n)i.setState(n)})};e.fn.button.defaults={loadingText:"loading..."};e.fn.button.Constructor=t;e.fn.button.noConflict=function(){e.fn.button=n;return this};e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);if(!n.hasClass("btn"))n=n.closest(".btn");n.button("toggle")})}(window.jQuery);!function(e){"use strict";var t=function(t,n){this.$element=e(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=n;this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){if(!t)this.paused=false;if(this.interval)clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval));return this},getActiveIndex:function(){this.$active=this.$element.find(".item.active");this.$items=this.$active.parent().children();return this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;if(this.sliding){return this.$element.one("slid",function(){r.to(t)})}if(n==t){return this.pause().cycle()}return this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){if(!t)this.paused=true;if(this.$element.find(".next, .prev").length&&e.support.transition.end){this.$element.trigger(e.support.transition.end);this.cycle(true)}clearInterval(this.interval);this.interval=null;return this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=true;s&&this.pause();i=i.length?i:this.$element.find(".item")[u]();f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")})}if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t);i[0].offsetWidth;r.addClass(o);i.addClass(o);this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active");r.removeClass(["active",o].join(" "));a.sliding=false;setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active");i.addClass("active");this.sliding=false;this.$element.trigger("slid")}s&&this.cycle();return this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;if(!i)r.data("carousel",i=new t(this,s));if(typeof n=="number")i.to(n);else if(o)i[o]();else if(s.interval)i.pause().cycle()})};e.fn.carousel.defaults={interval:5e3,pause:"hover"};e.fn.carousel.Constructor=t;e.fn.carousel.noConflict=function(){e.fn.carousel=n;return this};e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s);if(o=n.attr("data-slide-to")){i.data("carousel").pause().to(o).cycle()}t.preventDefault()})}(window.jQuery);!function(e){"use strict";var t=function(t,n){this.$element=e(t);this.options=e.extend({},e.fn.collapse.defaults,n);if(this.options.parent){this.$parent=e(this.options.parent)}this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasClass("in"))return;t=this.dimension();n=e.camelCase(["scroll",t].join("-"));r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide");i||r.data("collapse",null)}this.$element[t](0);this.transition("addClass",e.Event("show"),"shown");e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasClass("in"))return;t=this.dimension();this.reset(this.$element[t]());this.transition("removeClass",e.Event("hide"),"hidden");this.$element[t](0)},reset:function(e){var t=this.dimension();this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth;this.$element[e!==null?"addClass":"removeClass"]("collapse");return this},transition:function(t,n,r){var i=this,s=function(){if(n.type=="show")i.reset();i.transitioning=0;i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1;this.$element[t]("in");e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);if(!i)r.data("collapse",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.collapse.defaults={toggle:true};e.fn.collapse.Constructor=t;e.fn.collapse.noConflict=function(){e.fn.collapse=n;return this};e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed");e(i).collapse(s)})}(window.jQuery);!function(e){"use strict";function r(){e(".dropdown-backdrop").remove();e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;if(!n){n=t.attr("href");n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")}r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;s=i(n);o=s.hasClass("open");r();if(!o){if("ontouchstart"in document.documentElement){e('<div class="dropdown-backdrop"/>').insertBefore(e(this)).on("click",r)}s.toggleClass("open")}n.focus();return false},keydown:function(n){var r,s,o,u,a,f;if(!/(38|40|27)/.test(n.keyCode))return;r=e(this);n.preventDefault();n.stopPropagation();if(r.is(".disabled, :disabled"))return;u=i(r);a=u.hasClass("open");if(!a||a&&n.keyCode==27){if(n.which==27)u.find(t).focus();return r.click()}s=e("[role=menu] li:not(.divider):visible a",u);if(!s.length)return;f=s.index(s.filter(":focus"));if(n.keyCode==38&&f>0)f--;if(n.keyCode==40&&f<s.length-1)f++;if(!~f)f=0;s.eq(f).focus()}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var r=e(this),i=r.data("dropdown");if(!i)r.data("dropdown",i=new n(this));if(typeof t=="string")i[t].call(r)})};e.fn.dropdown.Constructor=n;e.fn.dropdown.noConflict=function(){e.fn.dropdown=s;return this};e(document).on("click.dropdown.data-api",r).on("click.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.dropdown.data-api",t,n.prototype.toggle).on("keydown.dropdown.data-api",t+", [role=menu]",n.prototype.keydown)}(window.jQuery);!function(e){"use strict";var t=function(t,n){this.options=n;this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this));this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};t.prototype={constructor:t,toggle:function(){return this[!this.isShown?"show":"hide"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n);if(this.isShown||n.isDefaultPrevented())return;this.isShown=true;this.escape();this.backdrop(function(){var n=e.support.transition&&t.$element.hasClass("fade");if(!t.$element.parent().length){t.$element.appendTo(document.body)}t.$element.show();if(n){t.$element[0].offsetWidth}t.$element.addClass("in").attr("aria-hidden",false);t.enforceFocus();n?t.$element.one(e.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")})},hide:function(t){t&&t.preventDefault();var n=this;t=e.Event("hide");this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=false;this.escape();e(document).off("focusin.modal");this.$element.removeClass("in").attr("aria-hidden",true);e.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var t=this;e(document).on("focusin.modal",function(e){if(t.$element[0]!==e.target&&!t.$element.has(e.target).length){t.$element.focus()}})},escape:function(){var e=this;if(this.isShown&&this.options.keyboard){this.$element.on("keyup.dismiss.modal",function(t){t.which==27&&e.hide()})}else if(!this.isShown){this.$element.off("keyup.dismiss.modal")}},hideWithTransition:function(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end);t.hideModal()},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n);t.hideModal()})},hideModal:function(){var e=this;this.$element.hide();this.backdrop(function(){e.removeBackdrop();e.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null},backdrop:function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;this.$backdrop=e('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this));if(i)this.$backdrop[0].offsetWidth;this.$backdrop.addClass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t):t()}else if(t){t()}}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);if(!i)r.data("modal",i=new t(this,s));if(typeof n=="string")i[n]();else if(s.show)i.show()})};e.fn.modal.defaults={backdrop:true,keyboard:true,show:true};e.fn.modal.Constructor=t;e.fn.modal.noConflict=function(){e.fn.modal=n;return this};e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault();i.modal(s).one("hide",function(){n.focus()})})}(window.jQuery);!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s,o,u,a;this.type=t;this.$element=e(n);this.options=this.getOptions(r);this.enabled=true;o=this.options.trigger.split(" ");for(a=o.length;a--;){u=o[a];if(u=="click"){this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this))}else if(u!="manual"){i=u=="hover"?"mouseenter":"focus";s=u=="hover"?"mouseleave":"blur";this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t);if(t.delay&&typeof t.delay=="number"){t.delay={show:t.delay,hide:t.delay}}return t},enter:function(t){var n=e.fn[this.type].defaults,r={},i;this._options&&e.each(this._options,function(e,t){if(n[e]!=t)r[e]=t},this);i=e(t.currentTarget)[this.type](r).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout);i.hoverState="in";this.timeout=setTimeout(function(){if(i.hoverState=="in")i.show()},i.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout)clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out";this.timeout=setTimeout(function(){if(n.hoverState=="out")n.hide()},n.options.delay.hide)},show:function(){var t,n,r,i,s,o,u=e.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(u);if(u.isDefaultPrevented())return;t=this.tip();this.setContent();if(this.options.animation){t.addClass("fade")}s=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement;t.detach().css({top:0,left:0,display:"block"});this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element);n=this.getPosition();r=t[0].offsetWidth;i=t[0].offsetHeight;switch(s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width};break}this.applyPlacement(o,s);this.$element.trigger("shown")}},applyPlacement:function(e,t){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,s,o,u,a;n.offset(e).addClass(t).addClass("in");s=n[0].offsetWidth;o=n[0].offsetHeight;if(t=="top"&&o!=i){e.top=e.top+i-o;a=true}if(t=="bottom"||t=="top"){u=0;if(e.left<0){u=e.left*-2;e.left=0;n.offset(e);s=n[0].offsetWidth;o=n[0].offsetHeight}this.replaceArrow(u-r+s,s,"left")}else{this.replaceArrow(o-i,o,"top")}if(a)n.offset(e)},replaceArrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t);e.removeClass("fade in top bottom left right")},hide:function(){function i(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t);n.detach()})}var t=this,n=this.tip(),r=e.Event("hide");this.$element.trigger(r);if(r.isDefaultPrevented())return;n.removeClass("in");e.support.transition&&this.$tip.hasClass("fade")?i():n.detach();this.$element.trigger("hidden");return this},fixTitle:function(){var e=this.$element;if(e.attr("title")||typeof e.attr("data-original-title")!="string"){e.attr("data-original-title",e.attr("title")||"").attr("title","")}},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var e,t=this.$element,n=this.options;e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title);return e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=t?e(t.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;if(!i)r.data("tooltip",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.tooltip.Constructor=t;e.fn.tooltip.defaults={animation:true,placement:"top",selector:false,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,container:false};e.fn.tooltip.noConflict=function(){e.fn.tooltip=n;return this}}(window.jQuery);!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t);e.find(".popover-content")[this.options.html?"html":"text"](n);e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;e=(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content");return e},tip:function(){if(!this.$tip){this.$tip=e(this.options.template)}return this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;if(!i)r.data("popover",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.popover.Constructor=t;e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});e.fn.popover.noConflict=function(){e.fn.popover=n;return this}}(window.jQuery);!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n);this.$scrollElement=i.on("scroll.scroll-spy.data-api",r);this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.$body=e("body");this.refresh();this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]);this.targets=e([]);n=this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n){return s!=(o=i.last()[0])&&this.activate(o)}for(o=r.length;o--;){s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])}},activate:function(t){var n,r;this.activeTarget=t;e(this.selector).parent(".active").removeClass("active");r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]';n=e(r).parent("li").addClass("active");if(n.parent(".dropdown-menu").length){n=n.closest("li.dropdown").addClass("active")}n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;if(!i)r.data("scrollspy",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.scrollspy.Constructor=t;e.fn.scrollspy.defaults={offset:10};e.fn.scrollspy.noConflict=function(){e.fn.scrollspy=n;return this};e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery);!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;if(!r){r=t.attr("href");r=r&&r.replace(/.*(?=#[^\s]*$)/,"")}if(t.parent("li").hasClass("active"))return;i=n.find(".active:last a")[0];o=e.Event("show",{relatedTarget:i});t.trigger(o);if(o.isDefaultPrevented())return;s=e(r);this.activate(t.parent("li"),n);this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");if(s){t[0].offsetWidth;t.addClass("in")}else{t.removeClass("fade")}if(t.parent(".dropdown-menu")){t.closest("li.dropdown").addClass("active")}r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o();i.removeClass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");if(!i)r.data("tab",i=new t(this));if(typeof n=="string")i[n]()})};e.fn.tab.Constructor=t;e.fn.tab.noConflict=function(){e.fn.tab=n;return this};e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();e(this).tab("show")})}(window.jQuery);!function(e){"use strict";var t=function(t,n){this.$element=e(t);this.options=e.extend({},e.fn.typeahead.defaults,n);this.matcher=this.options.matcher||this.matcher;this.sorter=this.options.sorter||this.sorter;this.highlighter=this.options.highlighter||this.highlighter;this.updater=this.options.updater||this.updater;this.source=this.options.source;this.$menu=e(this.options.menu);this.shown=false;this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");this.$element.val(this.updater(e)).change();return this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show();this.shown=true;return this},hide:function(){this.$menu.hide();this.shown=false;return this},lookup:function(t){var n;this.query=this.$element.val();if(!this.query||this.query.length<this.options.minLength){return this.shown?this.hide():this}n=e.isFunction(this.source)?this.source(this.query,e.proxy(this.process,this)):this.source;return n?this.process(n):this},process:function(t){var n=this;t=e.grep(t,function(e){return n.matcher(e)});t=this.sorter(t);if(!t.length){return this.shown?this.hide():this}return this.render(t.slice(0,this.options.items)).show()},matcher:function(e){return~e.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){var t=[],n=[],r=[],i;while(i=e.shift()){if(!i.toLowerCase().indexOf(this.query.toLowerCase()))t.push(i);else if(~i.indexOf(this.query))n.push(i);else r.push(i)}return t.concat(n,r)},highlighter:function(e){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return e.replace(new RegExp("("+t+")","ig"),function(e,t){return"<strong>"+t+"</strong>"})},render:function(t){var n=this;t=e(t).map(function(t,r){t=e(n.options.item).attr("data-value",r);t.find("a").html(n.highlighter(r));return t[0]});t.first().addClass("active");this.$menu.html(t);return this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();if(!r.length){r=e(this.$menu.find("li")[0])}r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();if(!n.length){n=this.$menu.find("li").last()}n.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this));if(this.eventSupported("keydown")){this.$element.on("keydown",e.proxy(this.keydown,this))}this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventSupported:function(e){var t=e in this.$element;if(!t){this.$element.setAttribute(e,"return;");t=typeof this.$element[e]==="function"}return t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault();this.prev();break;case 40:e.preventDefault();this.next();break}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]);this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation();e.preventDefault()},focus:function(e){this.focused=true},blur:function(e){this.focused=false;if(!this.mousedover&&this.shown)this.hide()},click:function(e){e.stopPropagation();e.preventDefault();this.select();this.$element.focus()},mouseenter:function(t){this.mousedover=true;this.$menu.find(".active").removeClass("active");e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=false;if(!this.focused&&this.shown)this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;if(!i)r.data("typeahead",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1};e.fn.typeahead.Constructor=t;e.fn.typeahead.noConflict=function(){e.fn.typeahead=n;return this};e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})}(window.jQuery);!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n);this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this));this.$element=e(t);this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;if(typeof i!="object")s=o=i;if(typeof o=="function")o=i.top();if(typeof s=="function")s=i.bottom();a=this.unpin!=null&&n+this.unpin<=r.top?false:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":false;if(this.affixed===a)return;this.affixed=a;this.unpin=a=="bottom"?r.top-n:null;this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;if(!i)r.data("affix",i=new t(this,s));if(typeof n=="string")i[n]()})};e.fn.affix.Constructor=t;e.fn.affix.defaults={offset:0};e.fn.affix.noConflict=function(){e.fn.affix=n;return this};e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{};n.offsetBottom&&(n.offset.bottom=n.offsetBottom);n.offsetTop&&(n.offset.top=n.offsetTop);t.affix(n)})})}(window.jQuery);