├── .gitignore ├── LICENSE ├── README.md ├── pom.xml └── src └── main ├── java └── demo │ ├── ProcessorApplication.java │ ├── ProcessorConfig.java │ ├── domain │ ├── Location.java │ ├── LocationRepository.java │ └── LocationService.java │ └── geo │ └── GeoNearPredicate.java └── resources ├── application.yml ├── bootstrap.yml ├── logback.xml └── public ├── app └── main.js ├── bower.json ├── bower_components ├── fastclick │ ├── .bower.json │ ├── LICENSE │ ├── README.md │ ├── bower.json │ └── lib │ │ └── fastclick.js ├── foundation │ ├── .bower.json │ ├── bower.json │ ├── css │ │ ├── foundation.css │ │ ├── foundation.css.map │ │ ├── normalize.css │ │ └── normalize.css.map │ ├── js │ │ ├── foundation.js │ │ ├── foundation.min.js │ │ ├── foundation │ │ │ ├── foundation.abide.js │ │ │ ├── foundation.accordion.js │ │ │ ├── foundation.alert.js │ │ │ ├── foundation.clearing.js │ │ │ ├── foundation.dropdown.js │ │ │ ├── foundation.equalizer.js │ │ │ ├── foundation.interchange.js │ │ │ ├── foundation.joyride.js │ │ │ ├── foundation.js │ │ │ ├── foundation.magellan.js │ │ │ ├── foundation.offcanvas.js │ │ │ ├── foundation.orbit.js │ │ │ ├── foundation.reveal.js │ │ │ ├── foundation.slider.js │ │ │ ├── foundation.tab.js │ │ │ ├── foundation.tooltip.js │ │ │ └── foundation.topbar.js │ │ └── vendor │ │ │ ├── fastclick.js │ │ │ ├── jquery.cookie.js │ │ │ ├── jquery.js │ │ │ ├── modernizr.js │ │ │ └── placeholder.js │ └── scss │ │ ├── foundation.scss │ │ ├── foundation │ │ ├── _functions.scss │ │ ├── _settings.scss │ │ └── components │ │ │ ├── _accordion.scss │ │ │ ├── _alert-boxes.scss │ │ │ ├── _block-grid.scss │ │ │ ├── _breadcrumbs.scss │ │ │ ├── _button-groups.scss │ │ │ ├── _buttons.scss │ │ │ ├── _clearing.scss │ │ │ ├── _dropdown-buttons.scss │ │ │ ├── _dropdown.scss │ │ │ ├── _flex-video.scss │ │ │ ├── _forms.scss │ │ │ ├── _global.scss │ │ │ ├── _grid.scss │ │ │ ├── _icon-bar.scss │ │ │ ├── _inline-lists.scss │ │ │ ├── _joyride.scss │ │ │ ├── _keystrokes.scss │ │ │ ├── _labels.scss │ │ │ ├── _magellan.scss │ │ │ ├── _offcanvas.scss │ │ │ ├── _orbit.scss │ │ │ ├── _pagination.scss │ │ │ ├── _panels.scss │ │ │ ├── _pricing-tables.scss │ │ │ ├── _progress-bars.scss │ │ │ ├── _range-slider.scss │ │ │ ├── _reveal.scss │ │ │ ├── _side-nav.scss │ │ │ ├── _split-buttons.scss │ │ │ ├── _sub-nav.scss │ │ │ ├── _switches.scss │ │ │ ├── _tables.scss │ │ │ ├── _tabs.scss │ │ │ ├── _thumbs.scss │ │ │ ├── _toolbar.scss │ │ │ ├── _tooltips.scss │ │ │ ├── _top-bar.scss │ │ │ ├── _type.scss │ │ │ └── _visibility.scss │ │ └── normalize.scss ├── jquery-placeholder │ ├── .bower.json │ ├── .gitattributes │ ├── .gitignore │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── bower.json │ ├── demo.html │ ├── jquery.placeholder.js │ └── tests │ │ ├── index.html │ │ └── tests.js ├── jquery.cookie │ ├── .bower.json │ ├── bower.json │ └── jquery.cookie.js ├── jquery │ ├── .bower.json │ ├── MIT-LICENSE.txt │ ├── bower.json │ ├── dist │ │ ├── jquery.js │ │ ├── jquery.min.js │ │ └── jquery.min.map │ └── src │ │ ├── ajax.js │ │ ├── ajax │ │ ├── jsonp.js │ │ ├── load.js │ │ ├── parseJSON.js │ │ ├── parseXML.js │ │ ├── script.js │ │ ├── var │ │ │ ├── nonce.js │ │ │ └── rquery.js │ │ └── xhr.js │ │ ├── attributes.js │ │ ├── attributes │ │ ├── attr.js │ │ ├── classes.js │ │ ├── prop.js │ │ ├── support.js │ │ └── val.js │ │ ├── callbacks.js │ │ ├── core.js │ │ ├── core │ │ ├── access.js │ │ ├── init.js │ │ ├── parseHTML.js │ │ ├── ready.js │ │ └── var │ │ │ └── rsingleTag.js │ │ ├── css.js │ │ ├── css │ │ ├── addGetHookIf.js │ │ ├── curCSS.js │ │ ├── defaultDisplay.js │ │ ├── hiddenVisibleSelectors.js │ │ ├── support.js │ │ ├── swap.js │ │ └── var │ │ │ ├── cssExpand.js │ │ │ ├── getStyles.js │ │ │ ├── isHidden.js │ │ │ ├── rmargin.js │ │ │ └── rnumnonpx.js │ │ ├── data.js │ │ ├── data │ │ ├── Data.js │ │ ├── accepts.js │ │ └── var │ │ │ ├── data_priv.js │ │ │ └── data_user.js │ │ ├── deferred.js │ │ ├── deprecated.js │ │ ├── dimensions.js │ │ ├── effects.js │ │ ├── effects │ │ ├── Tween.js │ │ └── animatedSelector.js │ │ ├── event.js │ │ ├── event │ │ ├── alias.js │ │ └── support.js │ │ ├── exports │ │ ├── amd.js │ │ └── global.js │ │ ├── intro.js │ │ ├── jquery.js │ │ ├── manipulation.js │ │ ├── manipulation │ │ ├── _evalUrl.js │ │ ├── support.js │ │ └── var │ │ │ └── rcheckableType.js │ │ ├── offset.js │ │ ├── outro.js │ │ ├── queue.js │ │ ├── queue │ │ └── delay.js │ │ ├── selector-native.js │ │ ├── selector-sizzle.js │ │ ├── selector.js │ │ ├── serialize.js │ │ ├── sizzle │ │ └── dist │ │ │ ├── sizzle.js │ │ │ ├── sizzle.min.js │ │ │ └── sizzle.min.map │ │ ├── traversing.js │ │ ├── traversing │ │ ├── findFilter.js │ │ └── var │ │ │ └── rneedsContext.js │ │ ├── var │ │ ├── arr.js │ │ ├── class2type.js │ │ ├── concat.js │ │ ├── hasOwn.js │ │ ├── indexOf.js │ │ ├── pnum.js │ │ ├── push.js │ │ ├── rnotwhite.js │ │ ├── slice.js │ │ ├── strundefined.js │ │ ├── support.js │ │ └── toString.js │ │ └── wrap.js ├── knockout │ ├── .bower.json │ ├── Gruntfile.js │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── dist │ │ ├── knockout.debug.js │ │ └── knockout.js │ ├── package.json │ └── src │ │ ├── binding │ │ ├── bindingAttributeSyntax.js │ │ ├── bindingProvider.js │ │ ├── defaultBindings │ │ │ ├── attr.js │ │ │ ├── checked.js │ │ │ ├── click.js │ │ │ ├── css.js │ │ │ ├── enableDisable.js │ │ │ ├── event.js │ │ │ ├── foreach.js │ │ │ ├── hasfocus.js │ │ │ ├── html.js │ │ │ ├── ifIfnotWith.js │ │ │ ├── options.js │ │ │ ├── selectedOptions.js │ │ │ ├── style.js │ │ │ ├── submit.js │ │ │ ├── text.js │ │ │ ├── textInput.js │ │ │ ├── uniqueName.js │ │ │ ├── value.js │ │ │ └── visible.js │ │ ├── editDetection │ │ │ ├── arrayToDomNodeChildren.js │ │ │ └── compareArrays.js │ │ ├── expressionRewriting.js │ │ └── selectExtensions.js │ │ ├── components │ │ ├── componentBinding.js │ │ ├── customElements.js │ │ ├── defaultLoader.js │ │ └── loaderRegistry.js │ │ ├── google-closure-compiler-utils.js │ │ ├── memoization.js │ │ ├── namespace.js │ │ ├── subscribables │ │ ├── dependencyDetection.js │ │ ├── dependentObservable.js │ │ ├── extenders.js │ │ ├── mappingHelpers.js │ │ ├── observable.js │ │ ├── observableArray.changeTracking.js │ │ ├── observableArray.js │ │ └── subscribable.js │ │ ├── templating │ │ ├── jquery.tmpl │ │ │ └── jqueryTmplTemplateEngine.js │ │ ├── native │ │ │ └── nativeTemplateEngine.js │ │ ├── templateEngine.js │ │ ├── templateRewriting.js │ │ ├── templateSources.js │ │ └── templating.js │ │ ├── utils.domData.js │ │ ├── utils.domManipulation.js │ │ ├── utils.domNodeDisposal.js │ │ ├── utils.js │ │ ├── version.js │ │ └── virtualElements.js ├── modernizr │ ├── .bower.json │ ├── .editorconfig │ ├── .gitignore │ ├── .travis.yml │ ├── feature-detects │ │ ├── a-download.js │ │ ├── audio-audiodata-api.js │ │ ├── audio-webaudio-api.js │ │ ├── battery-api.js │ │ ├── battery-level.js │ │ ├── blob-constructor.js │ │ ├── canvas-todataurl-type.js │ │ ├── contenteditable.js │ │ ├── contentsecuritypolicy.js │ │ ├── contextmenu.js │ │ ├── cookies.js │ │ ├── cors.js │ │ ├── css-backgroundposition-shorthand.js │ │ ├── css-backgroundposition-xy.js │ │ ├── css-backgroundrepeat.js │ │ ├── css-backgroundsizecover.js │ │ ├── css-boxsizing.js │ │ ├── css-calc.js │ │ ├── css-cubicbezierrange.js │ │ ├── css-displayrunin.js │ │ ├── css-displaytable.js │ │ ├── css-filters.js │ │ ├── css-hyphens.js │ │ ├── css-lastchild.js │ │ ├── css-mask.js │ │ ├── css-mediaqueries.js │ │ ├── css-objectfit.js │ │ ├── css-overflow-scrolling.js │ │ ├── css-pointerevents.js │ │ ├── css-positionsticky.js │ │ ├── css-regions.js │ │ ├── css-remunit.js │ │ ├── css-resize.js │ │ ├── css-scrollbars.js │ │ ├── css-shapes.js │ │ ├── css-subpixelfont.js │ │ ├── css-supports.js │ │ ├── css-userselect.js │ │ ├── css-vhunit.js │ │ ├── css-vmaxunit.js │ │ ├── css-vminunit.js │ │ ├── css-vwunit.js │ │ ├── custom-protocol-handler.js │ │ ├── dart.js │ │ ├── dataview-api.js │ │ ├── dom-classlist.js │ │ ├── dom-createElement-attrs.js │ │ ├── dom-dataset.js │ │ ├── dom-microdata.js │ │ ├── elem-datalist.js │ │ ├── elem-details.js │ │ ├── elem-output.js │ │ ├── elem-progress-meter.js │ │ ├── elem-ruby.js │ │ ├── elem-time.js │ │ ├── elem-track.js │ │ ├── emoji.js │ │ ├── es5-strictmode.js │ │ ├── event-deviceorientation-motion.js │ │ ├── exif-orientation.js │ │ ├── file-api.js │ │ ├── file-filesystem.js │ │ ├── forms-fileinput.js │ │ ├── forms-formattribute.js │ │ ├── forms-inputnumber-l10n.js │ │ ├── forms-placeholder.js │ │ ├── forms-speechinput.js │ │ ├── forms-validation.js │ │ ├── fullscreen-api.js │ │ ├── gamepad.js │ │ ├── getusermedia.js │ │ ├── ie8compat.js │ │ ├── iframe-sandbox.js │ │ ├── iframe-seamless.js │ │ ├── iframe-srcdoc.js │ │ ├── img-apng.js │ │ ├── img-webp.js │ │ ├── json.js │ │ ├── lists-reversed.js │ │ ├── mathml.js │ │ ├── network-connection.js │ │ ├── network-eventsource.js │ │ ├── network-xhr2.js │ │ ├── notification.js │ │ ├── performance.js │ │ ├── pointerlock-api.js │ │ ├── quota-management-api.js │ │ ├── requestanimationframe.js │ │ ├── script-async.js │ │ ├── script-defer.js │ │ ├── style-scoped.js │ │ ├── svg-filters.js │ │ ├── unicode.js │ │ ├── url-data-uri.js │ │ ├── userdata.js │ │ ├── vibration.js │ │ ├── web-intents.js │ │ ├── webgl-extensions.js │ │ ├── websockets-binary.js │ │ ├── window-framed.js │ │ ├── workers-blobworkers.js │ │ ├── workers-dataworkers.js │ │ └── workers-sharedworkers.js │ ├── grunt.js │ ├── media │ │ ├── Modernizr 2 Logo.ai │ │ ├── Modernizr 2 Logo.eps │ │ ├── Modernizr 2 Logo.pdf │ │ ├── Modernizr 2 Logo.png │ │ └── Modernizr 2 Logo.svg │ ├── modernizr.js │ ├── readme.md │ └── test │ │ ├── basic.html │ │ ├── caniuse.html │ │ ├── caniuse_files │ │ ├── Windsong-webfont.eot │ │ ├── Windsong-webfont.otf │ │ ├── Windsong-webfont.svg │ │ ├── Windsong-webfont.ttf │ │ ├── Windsong-webfont.woff │ │ ├── alpha.png │ │ ├── apng_test.png │ │ ├── before-after.png │ │ ├── form_validation.html │ │ ├── ga.js │ │ ├── green5x5.png │ │ ├── hashchange.html │ │ ├── jquery.min.js │ │ ├── mathml.html │ │ ├── mathml_ref.png │ │ ├── modernizr-1.7.min.js │ │ ├── png_alpha_result.png │ │ ├── pushstate.html │ │ ├── red30x30.png │ │ ├── ruby.png │ │ ├── stroked-text.png │ │ ├── style.css │ │ ├── svg-html-blur.png │ │ ├── svg-img.svg │ │ ├── svg-img.svg.1 │ │ ├── svg_blur.png │ │ ├── table.png │ │ ├── text-shadow1.png │ │ ├── text-shadow2.png │ │ ├── windsong_font.png │ │ └── xhtml.html │ │ ├── index.html │ │ ├── js │ │ ├── basic.html │ │ ├── dumpdata.js │ │ ├── lib │ │ │ ├── detect-global.js │ │ │ ├── jquery-1.7b2.js │ │ │ ├── jsonselect.js │ │ │ ├── polyfills.js │ │ │ └── uaparser.js │ │ ├── setup.js │ │ ├── unit-caniuse.js │ │ └── unit.js │ │ └── qunit │ │ ├── qunit.css │ │ ├── qunit.js │ │ └── run-qunit.js ├── rave │ ├── .bower.json │ ├── README.md │ ├── auto.js │ ├── bower.json │ ├── debug.js │ ├── lib │ │ ├── addSourceUrl.js │ │ ├── amd │ │ │ ├── bundle.js │ │ │ ├── captureDefines.js │ │ │ └── factory.js │ │ ├── beget.js │ │ ├── blank.js │ │ ├── convert │ │ │ ├── bower.js │ │ │ ├── common.js │ │ │ └── npm.js │ │ ├── crawl.js │ │ ├── crawl │ │ │ ├── bower.js │ │ │ ├── common.js │ │ │ └── npm.js │ │ ├── createMapper.js │ │ ├── createNormalizer.js │ │ ├── createPackageMapper.js │ │ ├── createRequire.js │ │ ├── createVersionedIdTransform.js │ │ ├── es5Transform.js │ │ ├── fetchText.js │ │ ├── find │ │ │ ├── amdEvidence.js │ │ │ ├── cjsEvidence.js │ │ │ ├── createCodeFinder.js │ │ │ ├── es5ModuleTypes.js │ │ │ └── requires.js │ │ ├── globalFactory.js │ │ ├── hooksFromMetadata.js │ │ ├── jsEncode.js │ │ ├── metadata.js │ │ ├── nodeFactory.js │ │ ├── package.js │ │ ├── path.js │ │ ├── script.js │ │ └── uid.js │ ├── load │ │ ├── override.js │ │ ├── predicate.js │ │ └── specificity.js │ ├── package.json │ ├── pipeline │ │ ├── fetchAsText.js │ │ ├── fetchFail.js │ │ ├── instantiateAmd.js │ │ ├── instantiateDefault.js │ │ ├── instantiateEs6.js │ │ ├── instantiateJson.js │ │ ├── instantiateNode.js │ │ ├── instantiateScript.js │ │ ├── locateAsIs.js │ │ ├── locatePackage.js │ │ ├── normalizeAsIs.js │ │ ├── normalizeCjs.js │ │ ├── translateAsIs.js │ │ ├── translateWrapInAmd.js │ │ └── translateWrapInNode.js │ └── rave.js ├── rest │ ├── .bower.json │ ├── .gitignore │ ├── .jshintignore │ ├── .jshintrc │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE.txt │ ├── README.md │ ├── UrlBuilder.js │ ├── bower.json │ ├── browser.js │ ├── client.js │ ├── client │ │ ├── default.js │ │ ├── jsonp.js │ │ ├── node.js │ │ ├── xdr.js │ │ └── xhr.js │ ├── interceptor.js │ ├── interceptor │ │ ├── basicAuth.js │ │ ├── csrf.js │ │ ├── defaultRequest.js │ │ ├── entity.js │ │ ├── errorCode.js │ │ ├── hateoas.js │ │ ├── ie │ │ │ ├── xdomain.js │ │ │ └── xhr.js │ │ ├── jsonp.js │ │ ├── location.js │ │ ├── mime.js │ │ ├── oAuth.js │ │ ├── pathPrefix.js │ │ ├── retry.js │ │ └── timeout.js │ ├── mime │ │ ├── registry.js │ │ └── type │ │ │ ├── application │ │ │ ├── hal.js │ │ │ ├── json.js │ │ │ └── x-www-form-urlencoded.js │ │ │ ├── multipart │ │ │ └── form-data.js │ │ │ └── text │ │ │ └── plain.js │ ├── node.js │ ├── package.json │ ├── parsers │ │ ├── _template.js │ │ ├── rfc5988.js │ │ └── rfc5988.pegjs │ ├── rest.js │ ├── util │ │ ├── base64.js │ │ ├── find.js │ │ ├── lazyPromise.js │ │ ├── mixin.js │ │ ├── normalizeHeaderName.js │ │ ├── pubsub.js │ │ └── responsePromise.js │ └── wire.js └── when │ ├── .bower.json │ ├── LICENSE.txt │ ├── bower.json │ ├── callbacks.js │ ├── cancelable.js │ ├── delay.js │ ├── es6-shim │ ├── Promise.browserify-es6.js │ └── Promise.js │ ├── function.js │ ├── generator.js │ ├── guard.js │ ├── keys.js │ ├── lib │ ├── Promise.js │ ├── Queue.js │ ├── Scheduler.js │ ├── TimeoutError.js │ ├── async.js │ ├── decorators │ │ ├── array.js │ │ ├── flow.js │ │ ├── fold.js │ │ ├── inspect.js │ │ ├── iterate.js │ │ ├── progress.js │ │ ├── timed.js │ │ ├── unhandledRejection.js │ │ └── with.js │ ├── liftAll.js │ ├── makePromise.js │ └── timer.js │ ├── monitor.js │ ├── monitor │ ├── ConsoleReporter.js │ ├── PromiseMonitor.js │ ├── console.js │ └── error.js │ ├── node.js │ ├── node │ └── function.js │ ├── package.json │ ├── parallel.js │ ├── pipeline.js │ ├── poll.js │ ├── sequence.js │ ├── timeout.js │ ├── unfold.js │ ├── unfold │ └── list.js │ └── when.js ├── css ├── foundation.min.css ├── normalize.css └── processor.css └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | #* 3 | *# 4 | .#* 5 | .classpath 6 | .project 7 | .settings 8 | .springBeans 9 | .gradle 10 | build 11 | bin 12 | /target/ 13 | git.properties 14 | .idea 15 | *.iml 16 | *.ipr 17 | *.iws 18 | .DS_Store 19 | *.log 20 | -------------------------------------------------------------------------------- /src/main/java/demo/ProcessorConfig.java: -------------------------------------------------------------------------------- 1 | package demo; 2 | 3 | import org.springframework.boot.context.properties.ConfigurationProperties; 4 | import org.springframework.stereotype.Component; 5 | 6 | /** 7 | * @author Jon Brisbin 8 | */ 9 | @Component 10 | @ConfigurationProperties(prefix = "demo") 11 | public class ProcessorConfig { 12 | 13 | private String baseUri = "http://localhost:5050"; 14 | private int defaultDistance = 20; 15 | 16 | public String getBaseUri() { 17 | return baseUri; 18 | } 19 | 20 | public int getDefaultDistance() { 21 | return defaultDistance; 22 | } 23 | 24 | public void setBaseUri(String baseUri) { 25 | this.baseUri = baseUri; 26 | } 27 | 28 | public void setDefaultDistance(int defaultDistance) { 29 | this.defaultDistance = defaultDistance; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/demo/domain/LocationRepository.java: -------------------------------------------------------------------------------- 1 | package demo.domain; 2 | 3 | import org.springframework.data.repository.CrudRepository; 4 | 5 | /** 6 | * @author Jon Brisbin 7 | */ 8 | public interface LocationRepository extends CrudRepository { 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: ${PORT:5050} 3 | 4 | logging: 5 | level: 6 | com.netflix.discovery: OFF 7 | 8 | http: 9 | mappers: 10 | jsonPrettyPrint: true -------------------------------------------------------------------------------- /src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: processor 4 | 5 | --- 6 | spring: 7 | profiles: cloud 8 | platform: 9 | config: 10 | uri: ${vcap.services.${PREFIX:}configserver.credentials.uri:http://localhost:8888} 11 | -------------------------------------------------------------------------------- /src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/resources/public/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reactive-realtime-geocoding-demo", 3 | "version": "0.1.0", 4 | "description": "Reactive Realtime Geocoding Demo", 5 | "main": "app/main.js", 6 | "moduleType": ["node"], 7 | "dependencies": { 8 | "rave": "~0.3.1", 9 | "rest": "~1.2.0", 10 | "knockout": "~3.2.0", 11 | "foundation": "~5.4.3" 12 | }, 13 | "ignore": [ 14 | "**/.*", 15 | "bower_components" 16 | ] 17 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/fastclick/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fastclick", 3 | "version": "1.0.3", 4 | "main": "lib/fastclick.js", 5 | "ignore": [ 6 | "**/.*", 7 | "component.json", 8 | "package.json", 9 | "Makefile", 10 | "tests", 11 | "examples" 12 | ], 13 | "homepage": "https://github.com/ftlabs/fastclick", 14 | "_release": "1.0.3", 15 | "_resolution": { 16 | "type": "version", 17 | "tag": "v1.0.3", 18 | "commit": "0ea8330a63019a07c8ccc86deca866bb31189b66" 19 | }, 20 | "_source": "git://github.com/ftlabs/fastclick.git", 21 | "_target": ">=0.6.11", 22 | "_originalSource": "fastclick" 23 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/fastclick/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 The Financial Times Ltd. 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/fastclick/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fastclick", 3 | "version": "1.0.3", 4 | "main": "lib/fastclick.js", 5 | "ignore": [ 6 | "**/.*", 7 | "component.json", 8 | "package.json", 9 | "Makefile", 10 | "tests", 11 | "examples" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foundation", 3 | "version": "5.4.3", 4 | "main": [ 5 | "css/foundation.css", 6 | "js/foundation.js" 7 | ], 8 | "dependencies": { 9 | "jquery": ">= 2.1.0", 10 | "modernizr": ">= 2.7.2", 11 | "fastclick": ">=0.6.11", 12 | "jquery.cookie": "~1.4.0", 13 | "jquery-placeholder": "~2.0.7" 14 | }, 15 | "devDependencies": { 16 | "jquery.autocomplete": "devbridge/jQuery-Autocomplete#1.2.9", 17 | "lodash": "~2.4.1" 18 | }, 19 | "private": true, 20 | "homepage": "https://github.com/zurb/bower-foundation", 21 | "_release": "5.4.3", 22 | "_resolution": { 23 | "type": "version", 24 | "tag": "5.4.3", 25 | "commit": "c2a99859f3442ccb61256be46f457e342547eb0a" 26 | }, 27 | "_source": "git://github.com/zurb/bower-foundation.git", 28 | "_target": "~5.4.3", 29 | "_originalSource": "foundation", 30 | "_direct": true 31 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foundation", 3 | "version": "5.4.2", 4 | "main": [ 5 | "css/foundation.css", 6 | "js/foundation.js" 7 | ], 8 | "dependencies": { 9 | "jquery": ">= 2.1.0", 10 | "modernizr": ">= 2.7.2", 11 | "fastclick": ">=0.6.11", 12 | "jquery.cookie": "~1.4.0", 13 | "jquery-placeholder": "~2.0.7" 14 | }, 15 | "devDependencies": { 16 | "jquery.autocomplete": "devbridge/jQuery-Autocomplete#1.2.9", 17 | "lodash": "~2.4.1" 18 | }, 19 | "private": true 20 | } 21 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/css/normalize.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "file": "", 4 | "sources": ["scss/normalize.scss"], 5 | "names": [], 6 | "mappings": ";;;;;;AAQA;EACE,aAAa;;EACb,sBAAsB;;EACtB,0BAA0B;;;;;;AAO5B;EACE,QAAQ;;;;;;;;;AAYV,SAAS,OAAO,SAAS,YAAY,QAAQ,QAAQ,QAAQ,QAAQ,MAAM,KAAK,SAAS;EAYvF,SAAS;;;;;;AAQX,OAAO,QAAQ,UAAU;EAIvB,SAAS;;EACT,gBAAgB;;;;;;;AAQlB,KAAK,KAAK;EACR,SAAS;EACT,QAAQ;;;;;;AAQV,UAAU;EAER,SAAS;;;;;;;AAUX;EACE,YAAY;;;;;AAOd,CAAC,SAAS,CAAC;EAET,SAAS;;;;;;;AAUX,IAAI;EACF,eAAe;;;;;AAOjB,GAAG;EAED,aAAa;;;;;AAOf;EACE,YAAY;;;;;;AAQd;EACE,WAAW;EACX,QAAQ;;;;;AAOV;EACE,YAAY;EACZ,OAAO;;;;;AAOT;EACE,WAAW;;;;;AAOb,KAAK;EAEH,WAAW;EACX,aAAa;EACb,UAAU;EACV,gBAAgB;;AAGlB;EACE,KAAK;;AAGP;EACE,QAAQ;;;;;;;AAUV;EACE,QAAQ;;;;;AAOV,GAAG,KAAK;EACN,UAAU;;;;;;;AAUZ;EACE,QAAQ;;;;;AAOV;EACE,iBAAiB;EACjB,YAAY;EACZ,QAAQ;;;;;AAOV;EACE,UAAU;;;;;AAOZ,MAAM,KAAK,KAAK;EAId,aAAa;EACb,WAAW;;;;;;;;;;;;;;AAkBb,QAAQ,OAAO,UAAU,QAAQ;EAK/B,OAAO;;EACP,MAAM;;EACN,QAAQ;;;;;;AAOV;EACE,UAAU;;;;;;;;AAUZ,QAAQ;EAEN,gBAAgB;;;;;;;;;AAWlB,QAAQ,KAAK,KAAK,iBAAiB,KAAK,gBAAgB,KAAK;EAI3D,oBAAoB;;EACpB,QAAQ;;;;;;AAOV,MAAM,YAAY,KAAK,KAAK;EAE1B,QAAQ;;;;;AAOV,MAAM,oBAAoB,KAAK;EAE7B,QAAQ;EACR,SAAS;;;;;;AAQX;EACE,aAAa;;;;;;;;;AAWf,KAAK,mBAAmB,KAAK;EAE3B,YAAY;;EACZ,SAAS;;;;;;;;AASX,KAAK,eAAe,6BAA6B,KAAK,eAAe;EAEnE,QAAQ;;;;;;;AASV,KAAK;EACH,oBAAoB;;EACpB,iBAAiB;EACjB,oBAAoB;;EACpB,YAAY;;;;;;;AASd,KAAK,eAAe,gCAAgC,KAAK,eAAe;EAEtE,oBAAoB;;;;;AAOtB;EACE,QAAQ;EACR,QAAQ;EACR,SAAS;;;;;;AAQX;EACE,QAAQ;;EACR,SAAS;;;;;;AAOX;EACE,UAAU;;;;;;AAQZ;EACE,aAAa;;;;;;;AAUf;EACE,iBAAiB;EACjB,gBAAgB;;AAGlB,IAAI;EAEF,SAAS" 7 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/js/foundation/foundation.alert.js: -------------------------------------------------------------------------------- 1 | ;(function ($, window, document, undefined) { 2 | 'use strict'; 3 | 4 | Foundation.libs.alert = { 5 | name : 'alert', 6 | 7 | version : '5.4.2', 8 | 9 | settings : { 10 | callback: function (){} 11 | }, 12 | 13 | init : function (scope, method, options) { 14 | this.bindings(method, options); 15 | }, 16 | 17 | events : function () { 18 | var self = this, 19 | S = this.S; 20 | 21 | $(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] .close', function (e) { 22 | var alertBox = S(this).closest('[' + self.attr_name() + ']'), 23 | settings = alertBox.data(self.attr_name(true) + '-init') || self.settings; 24 | 25 | e.preventDefault(); 26 | if (Modernizr.csstransitions) { 27 | alertBox.addClass("alert-close"); 28 | alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function(e) { 29 | S(this).trigger('close').trigger('close.fndtn.alert').remove(); 30 | settings.callback(); 31 | }); 32 | } else { 33 | alertBox.fadeOut(300, function () { 34 | S(this).trigger('close').trigger('close.fndtn.alert').remove(); 35 | settings.callback(); 36 | }); 37 | } 38 | }); 39 | }, 40 | 41 | reflow : function () {} 42 | }; 43 | }(jQuery, window, window.document)); 44 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/js/vendor/jquery.cookie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery Cookie Plugin v1.4.1 3 | * https://github.com/carhartl/jquery-cookie 4 | * 5 | * Copyright 2013 Klaus Hartl 6 | * Released under the MIT license 7 | */ 8 | !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}); -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/scss/foundation/components/_flex-video.scss: -------------------------------------------------------------------------------- 1 | // Foundation by ZURB 2 | // foundation.zurb.com 3 | // Licensed under MIT Open Source 4 | 5 | @import "global"; 6 | 7 | // 8 | // @variables 9 | // 10 | $include-html-media-classes: $include-html-classes !default; 11 | 12 | // We use these to control video container padding and margins 13 | $flex-video-padding-top: rem-calc(25) !default; 14 | $flex-video-padding-bottom: 67.5% !default; 15 | $flex-video-margin-bottom: rem-calc(16) !default; 16 | 17 | // We use this to control widescreen bottom padding 18 | $flex-video-widescreen-padding-bottom: 56.34% !default; 19 | 20 | // 21 | // @mixins 22 | // 23 | 24 | @mixin flex-video-container { 25 | position: relative; 26 | padding-top: $flex-video-padding-top; 27 | padding-bottom: $flex-video-padding-bottom; 28 | height: 0; 29 | margin-bottom: $flex-video-margin-bottom; 30 | overflow: hidden; 31 | 32 | &.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; } 33 | &.vimeo { padding-top: 0; } 34 | 35 | iframe, 36 | object, 37 | embed, 38 | video { 39 | position: absolute; 40 | top: 0; 41 | #{$default-float}: 0; 42 | width: 100%; 43 | height: 100%; 44 | } 45 | } 46 | 47 | @include exports("flex-video") { 48 | @if $include-html-media-classes { 49 | .flex-video { @include flex-video-container; } 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/scss/foundation/components/_magellan.scss: -------------------------------------------------------------------------------- 1 | // Foundation by ZURB 2 | // foundation.zurb.com 3 | // Licensed under MIT Open Source 4 | 5 | @import "global"; 6 | 7 | // 8 | // @variables 9 | // 10 | $include-html-magellan-classes: $include-html-classes !default; 11 | 12 | $magellan-bg: $white !default; 13 | $magellan-padding: 10px !default; 14 | 15 | @include exports("magellan") { 16 | @if $include-html-magellan-classes { 17 | 18 | #{data('magellan-expedition')}, #{data('magellan-expedition-clone')} { 19 | background: $magellan-bg; 20 | z-index: 50; 21 | min-width: 100%; 22 | padding: $magellan-padding; 23 | 24 | .sub-nav { 25 | margin-bottom: 0; 26 | dd { margin-bottom: 0; } 27 | a { 28 | line-height: 1.8em; 29 | } 30 | } 31 | } 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/foundation/scss/foundation/components/_toolbar.scss: -------------------------------------------------------------------------------- 1 | // Foundation by ZURB 2 | // foundation.zurb.com 3 | // Licensed under MIT Open Source 4 | // toolbar styles 5 | 6 | .toolbar { 7 | background: $oil; 8 | width: 100%; 9 | font-size: 0; 10 | display: inline-block; 11 | 12 | &.label-bottom .tab .tab-content { 13 | i, img { margin-bottom: 10px; } 14 | } 15 | 16 | &.label-right .tab .tab-content { 17 | i, img { margin-right: 10px; display: inline-block;} 18 | label { display: inline-block; } 19 | } 20 | 21 | &.vertical.label-right .tab .tab-content { 22 | text-align: left; 23 | } 24 | 25 | &.vertical { 26 | height: 100%; 27 | width: auto; 28 | 29 | .tab { 30 | width: auto; 31 | margin: auto; 32 | float: none; 33 | } 34 | } 35 | 36 | .tab { 37 | text-align: center; 38 | width: 25%; 39 | margin: 0 auto; 40 | display: block; 41 | padding: 20px; 42 | float: left; 43 | 44 | &:hover { 45 | background: rgba($white, 0.1); 46 | } 47 | } 48 | } 49 | 50 | .toolbar .tab-content { 51 | font-size: 16px; 52 | text-align: center; 53 | 54 | label { color: $iron; } 55 | 56 | i { 57 | font-size: 30px; 58 | display: block; 59 | margin: 0 auto; 60 | color: $iron; 61 | vertical-align: middle; 62 | } 63 | 64 | img { 65 | width: 30px; 66 | height: 30px; 67 | display: block; 68 | margin: 0 auto; 69 | } 70 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery-placeholder/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-placeholder", 3 | "version": "2.0.8", 4 | "main": [ 5 | "jquery.placeholder.js" 6 | ], 7 | "homepage": "https://github.com/mathiasbynens/jquery-placeholder", 8 | "_release": "2.0.8", 9 | "_resolution": { 10 | "type": "version", 11 | "tag": "v2.0.8", 12 | "commit": "051f21ef5279f4887d9caf6af7af211d933ba670" 13 | }, 14 | "_source": "git://github.com/mathiasbynens/jquery-placeholder.git", 15 | "_target": "~2.0.7", 16 | "_originalSource": "jquery-placeholder" 17 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery-placeholder/.gitattributes: -------------------------------------------------------------------------------- 1 | * eol=lf -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery-placeholder/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery-placeholder/LICENSE-MIT.txt: -------------------------------------------------------------------------------- 1 | Copyright Mathias Bynens 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery-placeholder/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-placeholder", 3 | "version": "2.0.8", 4 | "main": ["jquery.placeholder.js"] 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery.cookie/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery.cookie", 3 | "version": "1.4.1", 4 | "main": [ 5 | "./jquery.cookie.js" 6 | ], 7 | "dependencies": { 8 | "jquery": ">=1.2" 9 | }, 10 | "ignore": [ 11 | "test", 12 | ".*", 13 | "*.json", 14 | "*.md", 15 | "*.txt", 16 | "Gruntfile.js" 17 | ], 18 | "homepage": "https://github.com/carhartl/jquery-cookie", 19 | "_release": "1.4.1", 20 | "_resolution": { 21 | "type": "version", 22 | "tag": "v1.4.1", 23 | "commit": "92b7715518f2e6e90f4cfc7a07f9726a614ebe66" 24 | }, 25 | "_source": "git://github.com/carhartl/jquery-cookie.git", 26 | "_target": "~1.4.0", 27 | "_originalSource": "jquery.cookie" 28 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery.cookie/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery.cookie", 3 | "version": "1.4.1", 4 | "main": [ 5 | "./jquery.cookie.js" 6 | ], 7 | "dependencies": { 8 | "jquery": ">=1.2" 9 | }, 10 | "ignore": [ 11 | "test", 12 | ".*", 13 | "*.json", 14 | "*.md", 15 | "*.txt", 16 | "Gruntfile.js" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.1", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "speed", 10 | "test", 11 | "*.md", 12 | "AUTHORS.txt", 13 | "Gruntfile.js", 14 | "package.json" 15 | ], 16 | "devDependencies": { 17 | "sizzle": "1.10.19", 18 | "requirejs": "2.1.10", 19 | "qunit": "1.14.0", 20 | "sinon": "1.8.1" 21 | }, 22 | "keywords": [ 23 | "jquery", 24 | "javascript", 25 | "library" 26 | ], 27 | "homepage": "https://github.com/jquery/jquery", 28 | "_release": "2.1.1", 29 | "_resolution": { 30 | "type": "version", 31 | "tag": "2.1.1", 32 | "commit": "4dec426aa2a6cbabb1b064319ba7c272d594a688" 33 | }, 34 | "_source": "git://github.com/jquery/jquery.git", 35 | "_target": ">= 2.1.0", 36 | "_originalSource": "jquery" 37 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.1", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "speed", 10 | "test", 11 | "*.md", 12 | "AUTHORS.txt", 13 | "Gruntfile.js", 14 | "package.json" 15 | ], 16 | "devDependencies": { 17 | "sizzle": "1.10.19", 18 | "requirejs": "2.1.10", 19 | "qunit": "1.14.0", 20 | "sinon": "1.8.1" 21 | }, 22 | "keywords": [ 23 | "jquery", 24 | "javascript", 25 | "library" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery/src/ajax/parseJSON.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Support: Android 2.3 6 | // Workaround failure to string-cast null input 7 | jQuery.parseJSON = function( data ) { 8 | return JSON.parse( data + "" ); 9 | }; 10 | 11 | return jQuery.parseJSON; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery/src/ajax/parseXML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Cross-browser xml parsing 6 | jQuery.parseXML = function( data ) { 7 | var xml, tmp; 8 | if ( !data || typeof data !== "string" ) { 9 | return null; 10 | } 11 | 12 | // Support: IE9 13 | try { 14 | tmp = new DOMParser(); 15 | xml = tmp.parseFromString( data, "text/xml" ); 16 | } catch ( e ) { 17 | xml = undefined; 18 | } 19 | 20 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 21 | jQuery.error( "Invalid XML: " + data ); 22 | } 23 | return xml; 24 | }; 25 | 26 | return jQuery.parseXML; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/jquery/src/ajax/script.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../ajax" 4 | ], function( jQuery ) { 5 | 6 | // Install script dataType 7 | jQuery.ajaxSetup({ 8 | accepts: { 9 | script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 10 | }, 11 | contents: { 12 | script: /(?:java|ecma)script/ 13 | }, 14 | converters: { 15 | "text script": function( text ) { 16 | jQuery.globalEval( text ); 17 | return text; 18 | } 19 | } 20 | }); 21 | 22 | // Handle cache's special case and crossDomain 23 | jQuery.ajaxPrefilter( "script", function( s ) { 24 | if ( s.cache === undefined ) { 25 | s.cache = false; 26 | } 27 | if ( s.crossDomain ) { 28 | s.type = "GET"; 29 | } 30 | }); 31 | 32 | // Bind script tag hack transport 33 | jQuery.ajaxTransport( "script", function( s ) { 34 | // This transport only deals with cross domain requests 35 | if ( s.crossDomain ) { 36 | var script, callback; 37 | return { 38 | send: function( _, complete ) { 39 | script = jQuery(" 8 | 9 |
10 | 11 | 12 | 13 | 14 |
15 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/green5x5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/green5x5.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/hashchange.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | hashchange test 6 | 7 | 8 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/mathml_ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/mathml_ref.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/png_alpha_result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/png_alpha_result.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/pushstate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | popstate event test 6 | 7 | 8 | 9 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/red30x30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/red30x30.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/ruby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/ruby.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/stroked-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/stroked-text.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/svg-html-blur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/svg-html-blur.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/svg-img.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/svg-img.svg.1: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/svg_blur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/svg_blur.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/table.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/text-shadow1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/text-shadow1.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/text-shadow2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/text-shadow2.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/windsong_font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpringOne2GX-2014/reactive-geocoder/d27d69e3c6215ac7324df77e1255917dc12e6aee/src/main/resources/public/bower_components/modernizr/test/caniuse_files/windsong_font.png -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/modernizr/test/caniuse_files/xhtml.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Untitled 6 | 7 |

true

8 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rave", 3 | "version": "0.3.1", 4 | "description": "Zero-configuration application bootstrap and development.", 5 | "main": "rave", 6 | "moduleType": [ 7 | "node" 8 | ], 9 | "keywords": [ 10 | "module", 11 | "package", 12 | "bower", 13 | "npm", 14 | "amd", 15 | "node", 16 | "commonjs", 17 | "es6" 18 | ], 19 | "repository": { 20 | "type": "git", 21 | "url": "http://github.com/RaveJS/rave.git" 22 | }, 23 | "authors": [ 24 | "John Hann (http://unscriptable.com)", 25 | "Brian Cavalier (http://hovercraftstudios.com)" 26 | ], 27 | "contributors": [ 28 | { 29 | "name": "John Hann", 30 | "web": "http://unscriptable.com" 31 | }, 32 | { 33 | "name": "Brian Cavalier", 34 | "web": "http://hovercraftstudios.com" 35 | } 36 | ], 37 | "license": "MIT", 38 | "ignore": [ 39 | "**/.*", 40 | "node_modules", 41 | "bower_components", 42 | "src", 43 | "build", 44 | "test", 45 | "tests", 46 | "docs" 47 | ], 48 | "homepage": "https://github.com/RaveJS/rave", 49 | "_release": "0.3.1", 50 | "_resolution": { 51 | "type": "version", 52 | "tag": "0.3.1", 53 | "commit": "2d7ada5678b68b71700e1a7391e20a839bec4fdc" 54 | }, 55 | "_source": "git://github.com/RaveJS/rave.git", 56 | "_target": "~0.3.1", 57 | "_originalSource": "rave" 58 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rave", 3 | "version": "0.3.1", 4 | "description": "Zero-configuration application bootstrap and development.", 5 | "main": "rave", 6 | "moduleType": ["node"], 7 | "keywords": [ 8 | "module", 9 | "package", 10 | "bower", 11 | "npm", 12 | "amd", 13 | "node", 14 | "commonjs", 15 | "es6" 16 | ], 17 | "repository": { 18 | "type": "git", 19 | "url": "http://github.com/RaveJS/rave.git" 20 | }, 21 | "authors": [ 22 | "John Hann (http://unscriptable.com)", 23 | "Brian Cavalier (http://hovercraftstudios.com)" 24 | ], 25 | "contributors": [ 26 | { 27 | "name": "John Hann", 28 | "web": "http://unscriptable.com" 29 | }, 30 | { 31 | "name": "Brian Cavalier", 32 | "web": "http://hovercraftstudios.com" 33 | } 34 | ], 35 | "license": "MIT", 36 | "ignore": [ 37 | "**/.*", 38 | "node_modules", 39 | "bower_components", 40 | "src", 41 | "build", 42 | "test", 43 | "tests", 44 | "docs" 45 | ] 46 | } 47 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/addSourceUrl.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = addSourceUrl; 5 | 6 | function addSourceUrl (url, source) { 7 | return source 8 | + '\n//# sourceURL=' 9 | + url.replace(/\s/g, '%20') 10 | + '\n'; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/beget.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = beget; 5 | 6 | function Begetter () {} 7 | function beget (base) { 8 | var obj; 9 | Begetter.prototype = base; 10 | obj = new Begetter(); 11 | Begetter.prototype = null; 12 | return obj; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/blank.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Karolis Narkevicius */ 3 | 4 | /** 5 | * This module is used when a module in a map is set to false. 6 | * Setting module to false in a map (e.g. `browser` field in npm's package.json), 7 | * means that module should not be loaded, so instead we load an blank module. 8 | */ 9 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/convert/bower.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | var common = require('./common'); 6 | var path = require('../path'); 7 | 8 | var transform = common.transform; 9 | var createDeps = common.createDeps; 10 | 11 | // main exports 12 | 13 | exports.convert = bowerConvert; 14 | 15 | // exports for testing 16 | 17 | exports.bowerFixups = bowerFixups; 18 | 19 | function bowerConvert (data) { 20 | return bowerFixups(transform(data)); 21 | } 22 | 23 | function bowerFixups (data) { 24 | var metadata = data.getMetadata(); 25 | if (metadata.moduleType) { 26 | data.moduleType = metadata.moduleType; 27 | } 28 | data.main = path.removeExt(bowerFindJsMain(data)); 29 | return bowerAdjustLocation(data); 30 | } 31 | 32 | function bowerFindJsMain (data) { 33 | var mains, i; 34 | mains = data.main; 35 | if (mains && typeof mains === 'object') { 36 | for (i = 0; i < mains.length; i++) { 37 | if (mains[i].slice(-3) === '.js') return mains[i]; 38 | } 39 | } 40 | return mains || data.name; 41 | } 42 | 43 | function bowerAdjustLocation (data) { 44 | var metadata, mainPath; 45 | metadata = data.getMetadata(); 46 | if (metadata.directories && metadata.directories.lib) { 47 | data.location = metadata.directories.lib; 48 | } 49 | else { 50 | mainPath = path.splitDirAndFile(data.main); 51 | if (mainPath[0]) { 52 | data.location = path.joinPaths(data.location, mainPath[0]); 53 | data.main = mainPath[1]; 54 | } 55 | } 56 | return data; 57 | } 58 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/convert/common.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | var createUid = require('../uid').create; 6 | 7 | // main exports 8 | 9 | exports.transform = transformData; 10 | 11 | // exports for testing 12 | 13 | exports.createDepHashMap = createDepHashMap; 14 | 15 | function transformData (orig) { 16 | var metadata, clone; 17 | 18 | // create overridable copy of metadata 19 | metadata = orig.metadata; 20 | clone = Object.create(metadata); 21 | 22 | // copy some useful crawling data 23 | clone.pmType = orig.pmType; 24 | clone.fileType = orig.fileType; 25 | clone.location = orig.rootUrl; 26 | clone.depFolder = orig.depFolder; 27 | 28 | // add uid 29 | if (!clone.name) clone.name = orig.name; 30 | if (!clone.version) clone.version = '0.0.0'; 31 | clone.uid = createUid(clone); 32 | 33 | clone.getMetadata = function () { return metadata || {}; }; 34 | 35 | // convert children array to deps hashmap 36 | clone.deps = createDepHashMap(orig); 37 | 38 | return clone; 39 | } 40 | 41 | function createDepHashMap (data) { 42 | return data.children.reduce(function (hashMap, child) { 43 | hashMap[child.name] = child.uid; 44 | return hashMap; 45 | }, {}); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/createMapper.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Karolis Narkevicius */ 3 | var metadata = require('./metadata'); 4 | var path = require('./path'); 5 | 6 | module.exports = createMapper; 7 | 8 | function createMapper (context) { 9 | var packages; 10 | 11 | packages = context.packages; 12 | 13 | return function (normalizedName, refUid) { 14 | var refPkg, mappedId; 15 | 16 | refPkg = metadata.findPackage(packages, refUid); 17 | 18 | if (refPkg.mapFunc) { 19 | mappedId = refPkg.mapFunc(normalizedName); 20 | } 21 | else if (refPkg.map) { 22 | if (normalizedName in refPkg.map) { 23 | mappedId = refPkg.map[normalizedName]; 24 | } 25 | } 26 | 27 | // mappedId can be undefined, false, or a string 28 | // undefined === no mapping, return original id 29 | // false === do not load a module by this id, use blank module 30 | // string === module id was mapped, return mapped id 31 | return typeof mappedId === 'undefined' 32 | ? normalizedName 33 | : mappedId === false 34 | ? 'rave/lib/blank' 35 | : mappedId; 36 | }; 37 | } 38 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/createNormalizer.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = createNormalizer; 5 | 6 | function createNormalizer (idTransform, map, normalize) { 7 | return function (name, refererName, refererUrl) { 8 | var normalized = normalize(name, refererName, refererUrl); 9 | return idTransform(map(normalized, refererName), refererName, refererUrl); 10 | }; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/createPackageMapper.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Karolis Narkevicius */ 3 | var createMapper = require('./createMapper'); 4 | var uid = require('./uid'); 5 | 6 | module.exports = createPackageMapper; 7 | 8 | function createPackageMapper (context) { 9 | var mapper = createMapper(context); 10 | return function (normalizedName, refUid, refUrl) { 11 | return mapper(uid.getName(normalizedName), refUid, refUrl); 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/createRequire.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = createRequire; 5 | 6 | var es5Transform = require('./es5Transform'); 7 | 8 | function createRequire (loader, refId) { 9 | 10 | var require = function (id) { return syncRequire(id); }; 11 | 12 | // Implement proposed require.async, just like Montage Require: 13 | // https://github.com/montagejs/mr, but with an added `names` 14 | // parameter. 15 | require.async = function (id) { 16 | var abs, args; 17 | try { 18 | abs = loader.normalize(id, refId); 19 | } 20 | catch (ex) { 21 | return Promise.reject(ex); 22 | } 23 | args = arguments; 24 | return loader.import(abs).then(function (value) { 25 | return getExports(args[1], value); 26 | }); 27 | }; 28 | 29 | require.named = syncRequire; 30 | 31 | return require; 32 | 33 | function syncRequire (id, names) { 34 | var abs, value; 35 | abs = loader.normalize(id, refId); 36 | value = loader.get(abs); 37 | return getExports(names, value); 38 | } 39 | } 40 | 41 | function getExports (names, value) { 42 | var exports, i; 43 | // only attempt to get names if an array-like object was supplied 44 | if (Object(names) === names && names.hasOwnProperty('length')) { 45 | exports = {}; 46 | for (i = 0; i < names.length; i++) { 47 | exports[names[i]] = value[names[i]]; 48 | } 49 | return exports; 50 | } 51 | else { 52 | return es5Transform.fromLoader(value); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/createVersionedIdTransform.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | var createUid = require('./uid').create; 5 | var metadata = require('./metadata'); 6 | var path = require('./path'); 7 | 8 | module.exports = createVersionedIdTransform; 9 | 10 | function createVersionedIdTransform (context) { 11 | var packages; 12 | 13 | packages = context.packages; 14 | 15 | return function (normalized, refUid, refUrl) { 16 | var refPkg, depPkg; 17 | 18 | refPkg = metadata.findPackage(packages, refUid); 19 | depPkg = metadata.findDepPackage(packages, refPkg, normalized); 20 | 21 | if (!depPkg) { 22 | depPkg = metadata.findPackage(packages, normalized); 23 | } 24 | 25 | if (!depPkg) { 26 | throw new Error('Package not found for ' + normalized); 27 | } 28 | 29 | // translate package main (e.g. "rest" --> "rest/rest") 30 | if (normalized === depPkg.name && depPkg.main) { 31 | normalized = depPkg.main.charAt(0) === '.' 32 | ? path.reduceLeadingDots(depPkg.main, path.ensureEndSlash(depPkg.name)) 33 | : path.joinPaths(depPkg.name, depPkg.main); 34 | } 35 | 36 | if (normalized.indexOf('#') < 0) { 37 | // it's not already an uid 38 | normalized = createUid(depPkg, normalized); 39 | } 40 | 41 | return normalized; 42 | }; 43 | } 44 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/es5Transform.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = { 5 | fromLoader: function (value) { 6 | return value && value.__es5Module ? value.__es5Module : value; 7 | }, 8 | toLoader: function (module) { 9 | return { 10 | // for real ES6 modules to consume this module 11 | 'default': module, 12 | // for modules transpiled from ES5 13 | __es5Module: module 14 | }; 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/fetchText.js: -------------------------------------------------------------------------------- 1 | module.exports = fetchText; 2 | 3 | function fetchText (url, callback, errback) { 4 | var xhr; 5 | xhr = new XMLHttpRequest(); 6 | xhr.open('GET', url, true); 7 | xhr.onreadystatechange = function () { 8 | if (xhr.readyState === 4) { 9 | if (xhr.status < 400) { 10 | callback(xhr.responseText); 11 | } 12 | else { 13 | errback( 14 | new Error( 15 | 'fetchText() failed. url: "' + url 16 | + '" status: ' + xhr.status + ' - ' + xhr.statusText 17 | ) 18 | ); 19 | } 20 | } 21 | }; 22 | xhr.send(null); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/find/amdEvidence.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = findAmdEvidence; 5 | 6 | var createCodeFinder = require('./createCodeFinder'); 7 | 8 | findAmdEvidence.rx = /(\bdefine\s*\()|(\bdefine\.amd\b)/g; 9 | 10 | var finder = createCodeFinder(findAmdEvidence.rx); 11 | 12 | function findAmdEvidence (source) { 13 | var isAmd = false; 14 | 15 | finder(source, function () { 16 | isAmd = true; 17 | return 1e10; // stop searching 18 | }); 19 | 20 | return { isAmd: isAmd }; 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/find/cjsEvidence.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = findCjsEvidence; 5 | 6 | var createCodeFinder = require('./createCodeFinder'); 7 | 8 | findCjsEvidence.rx = /(\btypeof\s+exports\b|\bmodule\.exports\b|\bexports\.\b)/g; 9 | 10 | var finder = createCodeFinder(findCjsEvidence.rx); 11 | 12 | function findCjsEvidence (source) { 13 | var isCjs = false; 14 | 15 | finder(source, function () { 16 | isCjs = true; 17 | return 1e10; // stop searching 18 | }); 19 | 20 | return { isCjs: isCjs }; 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/find/es5ModuleTypes.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = findEs5ModuleTypes; 5 | 6 | var createCodeFinder = require('./createCodeFinder'); 7 | var findAmdEvidence = require('./amdEvidence'); 8 | var findCjsEvidence = require('./cjsEvidence'); 9 | 10 | findEs5ModuleTypes.rx = createCodeFinder.composeRx( 11 | findAmdEvidence.rx, findCjsEvidence.rx, 'g' 12 | ); 13 | 14 | var finder = createCodeFinder(findEs5ModuleTypes.rx); 15 | 16 | function findEs5ModuleTypes (source, preferAmd) { 17 | var results, foundDefine; 18 | 19 | results = { isCjs: false, isAmd: false }; 20 | 21 | finder(source, function (matches) { 22 | var amdDefine = matches[1], amdDetect = matches[2], cjs = matches[3]; 23 | if (cjs) { 24 | // only flag as CommonJS if we haven't hit a define 25 | // this prevents CommonJS-wrapped AMD from being flagged as cjs 26 | if (!foundDefine) results.isCjs = true; 27 | } 28 | else if (amdDefine || amdDetect) { 29 | results.isAmd = true; 30 | foundDefine = amdDefine; 31 | // optimization: stop searching if we found AMD evidence 32 | if (preferAmd) return 1e10; 33 | } 34 | }); 35 | 36 | return results; 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/find/requires.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = findRequires; 5 | 6 | var createCodeFinder = require('./createCodeFinder'); 7 | 8 | var findRValueRequiresRx = /require\s*\(\s*(["'])(.*?[^\\])\1\s*\)/g; 9 | var idMatch = 2; 10 | 11 | var finder = createCodeFinder(findRValueRequiresRx); 12 | 13 | function findRequires (source) { 14 | var deps, seen; 15 | 16 | deps = []; 17 | seen = {}; 18 | 19 | finder(source, function (matches) { 20 | var id = matches[idMatch]; 21 | if (id) { 22 | // push [relative] id into deps list and seen map 23 | if (!(id in seen)) { 24 | seen[id] = true; 25 | deps.push(id) 26 | } 27 | } 28 | }); 29 | 30 | return deps; 31 | } 32 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/globalFactory.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = globalFactory; 5 | 6 | var globalEval = new Function('eval(arguments[0]);'); 7 | 8 | function globalFactory (loader, load) { 9 | return function () { 10 | globalEval(load.source); 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/jsEncode.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = jsEncode; 5 | 6 | var map, encodeRx; 7 | 8 | map = { 34: '\\"', 13: '\\r', 12: '\\f', 10: '\\n', 9: '\\t', 8: '\\b' , 92: '\\\\'}; 9 | encodeRx = /["\n\f\t\r\b\\]/g; 10 | 11 | function jsEncode (text) { 12 | return text.replace(encodeRx, function (c) { 13 | return map[c.charCodeAt(0)]; 14 | }); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/metadata.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | var parseUid = require('./uid').parse; 5 | var path = require('./path'); 6 | var beget = require('./beget'); 7 | 8 | module.exports = { 9 | findPackage: findPackageDescriptor, 10 | findDepPackage: findDependentPackage 11 | }; 12 | 13 | function findPackageDescriptor (descriptors, fromModule) { 14 | var parts, pkgName; 15 | parts = parseUid(fromModule); 16 | pkgName = parts.pkgUid || parts.pkgName; 17 | return descriptors[pkgName]; 18 | } 19 | 20 | function findDependentPackage (descriptors, fromPkg, depName) { 21 | var parts, pkgName, depPkgUid; 22 | 23 | // ensure we have a package descriptor, not a uid 24 | if (typeof fromPkg === 'string') fromPkg = descriptors[fromPkg]; 25 | 26 | parts = parseUid(depName); 27 | pkgName = parts.pkgUid || parts.pkgName; 28 | 29 | if (fromPkg && (pkgName === fromPkg.name || pkgName === fromPkg.uid)) { 30 | // this is the same the package 31 | return fromPkg; 32 | } 33 | else { 34 | // get dep pkg uid 35 | depPkgUid = fromPkg ? fromPkg.deps[pkgName] : pkgName; 36 | return depPkgUid && descriptors[depPkgUid]; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/nodeFactory.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = nodeFactory; 5 | 6 | var es5Transform = require('./es5Transform'); 7 | var createRequire = require('./createRequire'); 8 | 9 | var _global; 10 | 11 | _global = typeof global !== 'undefined' ? global : window; 12 | 13 | function nodeFactory (loader, load) { 14 | var name, source, exports, module, require; 15 | 16 | name = load.name; 17 | source = load.source; 18 | exports = {}; 19 | module = { id: name, uri: load.address, exports: exports }; 20 | require = createRequire(loader, name); 21 | 22 | return function () { 23 | // TODO: use loader.global when es6-module-loader implements it 24 | // Note: V8 intermittently fails if we embed eval() in new Function() 25 | // and source has "use strict" in it 26 | var nodeEval = new Function( 27 | 'require', 'exports', 'module', 'global', source 28 | ); 29 | nodeEval.call(exports, require, exports, module, _global, source); 30 | // figure out what author intended to export 31 | return exports === module.exports 32 | ? exports // a set of named exports 33 | : es5Transform.toLoader(module.exports); // a single default export 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/lib/uid.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | exports.create = createUid; 5 | exports.parse = parseUid; 6 | exports.getName = getName; 7 | 8 | function createUid (descriptor, normalized) { 9 | return /*descriptor.pmType + ':' +*/ descriptor.name 10 | + (descriptor.version ? '@' + descriptor.version : '') 11 | + (normalized ? '#' + normalized : ''); 12 | } 13 | 14 | 15 | function parseUid (uid) { 16 | var uparts = uid.split('#'); 17 | var name = uparts.pop(); 18 | var nparts = name.split('/'); 19 | return { 20 | name: name, 21 | pkgName: nparts.shift(), 22 | modulePath: nparts.join('/'), 23 | pkgUid: uparts[0] 24 | }; 25 | } 26 | 27 | 28 | function getName (uid) { 29 | return uid.split("#").pop(); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/load/specificity.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | exports.compare = compareFilters; 6 | exports.pkgSpec = packageSpecificity; 7 | exports.patSpec = patternSpecificity; 8 | exports.extSpec = extensionSpecificity; 9 | exports.predSpec = predicateSpecificity; 10 | 11 | function packageSpecificity (filter) { 12 | if (!filter.package || filter.package === '*') return 0; 13 | // else if (filter.package.indexOf('*') >= 0) return 1; 14 | else return 1; 15 | } 16 | 17 | function patternSpecificity (filter) { 18 | return filter.pattern ? 1 : 0; 19 | } 20 | 21 | function extensionSpecificity (filter) { 22 | return filter.extensions && filter.extensions.length 23 | ? 1 / filter.extensions.length 24 | : 0; 25 | } 26 | 27 | function predicateSpecificity (filter) { 28 | return filter.predicate ? 1 : 0; 29 | } 30 | 31 | function compareFilters (a, b) { 32 | // packages have highest priority 33 | var diff = packageSpecificity(a) - packageSpecificity(b); 34 | // after packages, patterns are priority 35 | if (diff === 0) diff = patternSpecificity(a) - patternSpecificity(b); 36 | // next priority is extensions 37 | if (diff === 0) diff = extensionSpecificity(a) - extensionSpecificity(b); 38 | // last priority is custom predicates 39 | if (diff === 0) diff = predicateSpecificity(a) - predicateSpecificity(b); 40 | // sort higher specificity filters to beginning of array 41 | return -diff; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rave", 3 | "version": "0.3.1", 4 | "description": "Zero-configuration application bootstrap and development.", 5 | "main": "rave", 6 | "keywords": [ 7 | "module", 8 | "package", 9 | "bower", 10 | "npm", 11 | "amd", 12 | "node", 13 | "commonjs", 14 | "es6" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "http://github.com/RaveJS/rave.git" 19 | }, 20 | "authors": [ 21 | "John Hann (http://unscriptable.com)", 22 | "Brian Cavalier (http://hovercraftstudios.com)" 23 | ], 24 | "contributors": [ 25 | { 26 | "name": "John Hann", 27 | "web": "http://unscriptable.com" 28 | }, 29 | { 30 | "name": "Brian Cavalier", 31 | "web": "http://hovercraftstudios.com" 32 | } 33 | ], 34 | "license": "MIT", 35 | "devDependencies": { 36 | "when": "~3", 37 | "buster": "~0.6", 38 | "cram": "0.8.0", 39 | "es6-module-loader": "git://github.com/ModuleLoader/es6-module-loader#v0.4.3" 40 | }, 41 | "scripts": { 42 | "test": "buster test", 43 | "cram": "node node_modules/cram/cram.js --config ./build/cram.json --output ./build/temp/hooks.js", 44 | "concat": "node build/concat.js", 45 | "build": "npm run cram && npm run concat" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/fetchAsText.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = fetchAsText; 5 | 6 | var fetchText = require('../lib/fetchText'); 7 | 8 | function fetchAsText (load) { 9 | return new Promise(function(resolve, reject) { 10 | fetchText(load.address, resolve, reject); 11 | }); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/fetchFail.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = fetchFail; 5 | 6 | function fetchFail (load) { 7 | throw new TypeError('Default implementation cannot fetch.'); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/instantiateDefault.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = instantiateDefault; 5 | 6 | function instantiateDefault (load) { 7 | return; 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/instantiateJson.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | var es5Transform = require('../lib/es5Transform'); 5 | var addSourceUrl = require('../lib/addSourceUrl'); 6 | 7 | module.exports = instantiateJson; 8 | 9 | function instantiateJson (load) { 10 | var source; 11 | 12 | source = '(' + load.source + ')'; 13 | 14 | // if debugging, add sourceURL 15 | if (load.metadata.rave.debug) { 16 | source = addSourceUrl(load.address, source); 17 | } 18 | 19 | return { 20 | execute: function () { 21 | return new Module(es5Transform.toLoader(eval(source))); 22 | } 23 | }; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/instantiateNode.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | var findRequires = require('../lib/find/requires'); 5 | var nodeFactory = require('../lib/nodeFactory'); 6 | var addSourceUrl = require('../lib/addSourceUrl'); 7 | 8 | module.exports = instantiateNode; 9 | 10 | function instantiateNode (load) { 11 | var loader, deps, factory; 12 | 13 | loader = load.metadata.rave.loader; 14 | deps = findOrThrow(load); 15 | 16 | // if debugging, add sourceURL 17 | if (load.metadata.rave.debug) { 18 | load.source = addSourceUrl(load.address, load.source); 19 | } 20 | 21 | factory = nodeFactory(loader, load); 22 | 23 | return { 24 | deps: deps, 25 | execute: function () { 26 | return new Module(factory.apply(this, arguments)); 27 | } 28 | }; 29 | } 30 | 31 | function findOrThrow (load) { 32 | try { 33 | return findRequires(load.source); 34 | } 35 | catch (ex) { 36 | ex.message += ' ' + load.name + ' ' + load.address; 37 | throw ex; 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/instantiateScript.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = instantiateScript; 5 | 6 | var globalFactory = require('../lib/globalFactory'); 7 | var addSourceUrl = require('../lib/addSourceUrl'); 8 | var metadata = require('../lib/metadata'); 9 | var path = require('../lib/path'); 10 | 11 | function instantiateScript (load) { 12 | var packages, pkg, deps; 13 | 14 | // if debugging, add sourceURL 15 | if (load.metadata.rave.debug) { 16 | load.source = addSourceUrl(load.address, load.source); 17 | } 18 | 19 | // find dependencies 20 | packages = load.metadata.rave.packages; 21 | pkg = metadata.findPackage(packages, load.name); 22 | if (pkg && pkg.deps) { 23 | deps = pkgMains(packages, pkg.deps) 24 | } 25 | 26 | var factory = globalFactory(this, load); 27 | return { 28 | deps: deps, 29 | execute: function () { 30 | factory(); 31 | return new Module({}); 32 | } 33 | }; 34 | 35 | } 36 | 37 | 38 | function pkgMains (packages, depPkgs) { 39 | var main, mains = []; 40 | for (var name in depPkgs) { 41 | // package-to-package dependency 42 | main = packages[depPkgs[name]].name; 43 | if (main) { 44 | mains.push(main); 45 | } 46 | } 47 | return mains; 48 | } 49 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/locateAsIs.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = locateAsIs; 5 | 6 | function locateAsIs (load) { 7 | return load.name; 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/locatePackage.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = locatePackage; 5 | 6 | var path = require('../lib/path'); 7 | var parseUid = require('../lib/uid').parse; 8 | var metadata = require('../lib/metadata'); 9 | 10 | function locatePackage (load) { 11 | var options, parts, packageName, modulePath, moduleName, descriptor, 12 | location; 13 | 14 | options = load.metadata.rave; 15 | 16 | if (!options.packages) throw new Error('Packages not provided: ' + load.name); 17 | 18 | parts = parseUid(load.name); 19 | packageName = parts.pkgUid || parts.pkgName; 20 | modulePath = parts.modulePath; 21 | 22 | descriptor = options.packages[packageName]; 23 | if (!descriptor) throw new Error('Package not found: ' + load.name); 24 | 25 | moduleName = modulePath || descriptor.main; 26 | if (!load.metadata.dontAddExt) { 27 | moduleName = path.ensureExt(moduleName, '.js') 28 | } 29 | 30 | location = descriptor.location; 31 | if (!path.isAbsUrl(location) && options.baseUrl) { 32 | // prepend baseUrl 33 | location = path.joinPaths(options.baseUrl, location); 34 | } 35 | 36 | return path.joinPaths(location, moduleName); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/normalizeAsIs.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = normalizeAsIs; 5 | 6 | function normalizeAsIs (name, refererName, refererUrl) { 7 | return String(name); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/normalizeCjs.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | var path = require('../lib/path'); 5 | 6 | module.exports = normalizeCjs; 7 | 8 | var reduceLeadingDots = path.reduceLeadingDots; 9 | 10 | function normalizeCjs (name, refererName, refererUrl) { 11 | return reduceLeadingDots(String(name), refererName || ''); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/translateAsIs.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = translateAsIs; 5 | 6 | function translateAsIs (load) { 7 | return load.source; 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/translateWrapInAmd.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = translateWrapInAmd; 5 | 6 | function translateWrapInAmd (load) { 7 | // The \n allows for a comment on the last line! 8 | return 'define(' + load.source + '\n);'; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rave/pipeline/translateWrapInNode.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2014 original authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | module.exports = translateWrapInNode; 5 | 6 | function translateWrapInNode (load) { 7 | // The \n allows for a comment on the last line! 8 | return 'module.exports = ' + load.source + '\n;'; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rest", 3 | "version": "1.2.0", 4 | "main": "./browser.js", 5 | "moduleType": [ 6 | "amd", 7 | "node" 8 | ], 9 | "dependencies": { 10 | "when": "~3" 11 | }, 12 | "ignore": [ 13 | "docs", 14 | "test" 15 | ], 16 | "homepage": "https://github.com/cujojs/rest", 17 | "_release": "1.2.0", 18 | "_resolution": { 19 | "type": "version", 20 | "tag": "v1.2.0", 21 | "commit": "acf479de78817562eab563b8f8a63a7aa7d854d9" 22 | }, 23 | "_source": "git://github.com/cujojs/rest.git", 24 | "_target": "~1.2.0", 25 | "_originalSource": "rest" 26 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .buildpath 3 | .classpath 4 | .idea 5 | .project 6 | .settings 7 | /node_modules 8 | /npm-debug.log 9 | /sauce_connect.log* 10 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/.jshintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | parsers 3 | test/**/fixtures -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2014 the original author or authors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, 
including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished 
to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | 21 | 22 | --- 23 | 24 | Code published by Scott Andrews or Jeremy Grelle prior to 2013-09-21 is 25 | copyright Pivotal and licensed under the above terms. 26 | 27 | GoPivotal, Inc. 28 | 1900 South Norfolk Street, Suite 125 29 | San Mateo, CA 94403 30 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rest", 3 | "version": "1.2.0", 4 | "main": "./browser.js", 5 | "moduleType": ["amd", "node"], 6 | "dependencies": { 7 | "when": "~3" 8 | }, 9 | "ignore": [ 10 | "docs", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/browser.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var rest = require('./client/default'), 14 | browser = require('./client/xhr'); 15 | 16 | rest.setPlatformDefaultClient(browser); 17 | 18 | return rest; 19 | 20 | }); 21 | 22 | }( 23 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 24 | // Boilerplate for AMD and Node 25 | )); 26 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/interceptor/basicAuth.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2013 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var interceptor, base64; 14 | 15 | interceptor = require('../interceptor'); 16 | base64 = require('../util/base64'); 17 | 18 | /** 19 | * Authenticates the request using HTTP Basic Authentication (rfc2617) 20 | * 21 | * @param {Client} [client] client to wrap 22 | * @param {string} config.username username 23 | * @param {string} [config.password=''] password for the user 24 | * 25 | * @returns {Client} 26 | */ 27 | return interceptor({ 28 | request: function handleRequest(request, config) { 29 | var headers, username, password; 30 | 31 | headers = request.headers || (request.headers = {}); 32 | username = request.username || config.username; 33 | password = request.password || config.password || ''; 34 | 35 | if (username) { 36 | headers.Authorization = 'Basic ' + base64.encode(username + ':' + password); 37 | } 38 | 39 | return request; 40 | } 41 | }); 42 | 43 | }); 44 | 45 | }( 46 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 47 | // Boilerplate for AMD and Node 48 | )); 49 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/interceptor/entity.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2014 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var interceptor; 14 | 15 | interceptor = require('../interceptor'); 16 | 17 | if (typeof console !== 'undefined') { 18 | console.log('rest.js: rest/interceptor/entity is deprecated, please use response.entity() instead'); 19 | } 20 | 21 | /** 22 | * @deprecated use response.entity() instead 23 | * 24 | * Returns the response entity as the response, discarding other response 25 | * properties. 26 | * 27 | * @param {Client} [client] client to wrap 28 | * 29 | * @returns {Client} 30 | */ 31 | return interceptor({ 32 | response: function (response) { 33 | if ('entity' in response) { 34 | return response.entity; 35 | } 36 | return response; 37 | } 38 | }); 39 | 40 | }); 41 | 42 | }( 43 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 44 | // Boilerplate for AMD and Node 45 | )); 46 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/interceptor/errorCode.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2013 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var interceptor, when; 14 | 15 | interceptor = require('../interceptor'); 16 | when = require('when'); 17 | 18 | /** 19 | * Rejects the response promise based on the status code. 20 | * 21 | * Codes greater than or equal to the provided value are rejected. Default 22 | * value 400. 23 | * 24 | * @param {Client} [client] client to wrap 25 | * @param {number} [config.code=400] code to indicate a rejection 26 | * 27 | * @returns {Client} 28 | */ 29 | return interceptor({ 30 | init: function (config) { 31 | config.code = config.code || 400; 32 | return config; 33 | }, 34 | response: function (response, config) { 35 | if (response.status && response.status.code >= config.code) { 36 | return when.reject(response); 37 | } 38 | return response; 39 | } 40 | }); 41 | 42 | }); 43 | 44 | }( 45 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 46 | // Boilerplate for AMD and Node 47 | )); 48 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/interceptor/pathPrefix.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2013 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var interceptor, UrlBuilder; 14 | 15 | interceptor = require('../interceptor'); 16 | UrlBuilder = require('../UrlBuilder'); 17 | 18 | function startsWith(str, prefix) { 19 | return str.indexOf(prefix) === 0; 20 | } 21 | 22 | function endsWith(str, suffix) { 23 | return str.lastIndexOf(suffix) + suffix.length === str.length; 24 | } 25 | 26 | /** 27 | * Prefixes the request path with a common value. 28 | * 29 | * @param {Client} [client] client to wrap 30 | * @param {number} [config.prefix] path prefix 31 | * 32 | * @returns {Client} 33 | */ 34 | return interceptor({ 35 | request: function (request, config) { 36 | var path; 37 | 38 | if (config.prefix && !(new UrlBuilder(request.path).isFullyQualified())) { 39 | path = config.prefix; 40 | if (request.path) { 41 | if (!endsWith(path, '/') && !startsWith(request.path, '/')) { 42 | // add missing '/' between path sections 43 | path += '/'; 44 | } 45 | path += request.path; 46 | } 47 | request.path = path; 48 | } 49 | 50 | return request; 51 | } 52 | }); 53 | 54 | }); 55 | 56 | }( 57 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 58 | // Boilerplate for AMD and Node 59 | )); 60 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/mime/type/application/json.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (/* require */) { 12 | 13 | return { 14 | 15 | read: function (str) { 16 | return JSON.parse(str); 17 | }, 18 | 19 | write: function (obj) { 20 | return JSON.stringify(obj); 21 | } 22 | 23 | }; 24 | }); 25 | 26 | }( 27 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 28 | // Boilerplate for AMD and Node 29 | )); 30 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/mime/type/text/plain.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (/* require */) { 12 | 13 | return { 14 | 15 | read: function (str) { 16 | return str; 17 | }, 18 | 19 | write: function (obj) { 20 | return obj.toString(); 21 | } 22 | 23 | }; 24 | }); 25 | 26 | }( 27 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 28 | // Boilerplate for AMD and Node 29 | )); 30 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/node.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var rest = require('./client/default'), 14 | node = require('./client/node'); 15 | 16 | rest.setPlatformDefaultClient(node); 17 | 18 | return rest; 19 | 20 | }); 21 | 22 | }( 23 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 24 | // Boilerplate for AMD and Node 25 | )); 26 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rest", 3 | "version": "1.2.0", 4 | "description": "RESTful HTTP client library", 5 | "keywords": ["rest", "http", "client", "rest-template", "spring", "cujojs"], 6 | "licenses": [ 7 | { 8 | "type": "MIT", 9 | "url": "http://opensource.org/licenses/MIT" 10 | } 11 | ], 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/cujojs/rest.git" 15 | }, 16 | "bugs": "https://github.com/cujojs/rest/issues", 17 | "maintainers": [ 18 | { 19 | "name": "Scott Andrews", 20 | "email": "scothis@gmail.com", 21 | "web": "http://twitter.com/scothis" 22 | } 23 | ], 24 | "contributors": [ 25 | { 26 | "name": "Jeremy Grelle", 27 | "email": "jeremy.grelle@gmail.com" 28 | }, 29 | { 30 | "name": "John Hann", 31 | "web": "http://unscriptable.com" 32 | }, 33 | { 34 | "name": "Michael Jackson", 35 | "web": "https://github.com/mjackson" 36 | } 37 | ], 38 | "dependencies": { 39 | "when": "~3" 40 | }, 41 | "devDependencies": { 42 | "wire": "~0.9", 43 | "test-support": "~0.4", 44 | "curl": "https://github.com/cujojs/curl/tarball/0.7.3", 45 | "poly": "https://github.com/cujojs/poly/tarball/0.5.1" 46 | }, 47 | "main": "./node", 48 | "browser": "./browser", 49 | "scripts": { 50 | "test": "npm run-script lint && npm run-script buster", 51 | "start": "buster static -e browser", 52 | "tunnel": "sauceme -m", 53 | "lint": "jshint .", 54 | "buster": "buster test --node", 55 | "sauceme": "sauceme" 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/parsers/_template.js: -------------------------------------------------------------------------------- 1 | (function (define) { 2 | define(function (require, exports, module) { 3 | 4 | // pegjs output goes here 5 | 6 | }); 7 | }( 8 | typeof define === 'function' && define.amd ? define : function (factory) { factory(require, module.exports, module); } 9 | )); 10 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/rest.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2014 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | if (console) { 14 | (console.warn || console.log).call(console, 'rest.js: The main module has moved, please switch your configuration to use \'rest/browser\' as the main module for browser applications.'); 15 | } 16 | 17 | return require('./browser'); 18 | 19 | }); 20 | 21 | }( 22 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 23 | // Boilerplate for AMD and Node 24 | )); 25 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/util/find.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (/* require */) { 12 | 13 | return { 14 | 15 | /** 16 | * Find objects within a graph the contain a property of a certain name. 17 | * 18 | * NOTE: this method will not discover object graph cycles. 19 | * 20 | * @param {*} obj object to search on 21 | * @param {string} prop name of the property to search for 22 | * @param {Function} callback function to receive the found properties and their parent 23 | */ 24 | findProperties: function findProperties(obj, prop, callback) { 25 | if (typeof obj !== 'object' || obj === null) { return; } 26 | if (prop in obj) { 27 | callback(obj[prop], obj, prop); 28 | } 29 | Object.keys(obj).forEach(function (key) { 30 | findProperties(obj[key], prop, callback); 31 | }); 32 | } 33 | 34 | }; 35 | 36 | }); 37 | 38 | }( 39 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 40 | // Boilerplate for AMD and Node 41 | )); 42 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/util/lazyPromise.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (require) { 12 | 13 | var when; 14 | 15 | when = require('when'); 16 | 17 | /** 18 | * Create a promise whose work is started only when a handler is registered. 19 | * 20 | * The work function will be invoked at most once. Thrown values will result 21 | * in promise rejection. 22 | * 23 | * @param {Function} work function whose ouput is used to resolve the 24 | * returned promise. 25 | * @returns {Promise} a lazy promise 26 | */ 27 | function lazyPromise(work) { 28 | var defer, started, resolver, promise, then; 29 | 30 | defer = when.defer(); 31 | started = false; 32 | 33 | resolver = defer.resolver; 34 | promise = defer.promise; 35 | then = promise.then; 36 | 37 | promise.then = function () { 38 | if (!started) { 39 | started = true; 40 | when.attempt(work).then(resolver.resolve, resolver.reject); 41 | } 42 | return then.apply(promise, arguments); 43 | }; 44 | 45 | return promise; 46 | } 47 | 48 | return lazyPromise; 49 | 50 | }); 51 | 52 | }( 53 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 54 | // Boilerplate for AMD and Node 55 | )); 56 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/util/mixin.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2013 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | // derived from dojo.mixin 12 | define(function (/* require */) { 13 | 14 | var empty = {}; 15 | 16 | /** 17 | * Mix the properties from the source object into the destination object. 18 | * When the same property occurs in more then one object, the right most 19 | * value wins. 20 | * 21 | * @param {Object} dest the object to copy properties to 22 | * @param {Object} sources the objects to copy properties from. May be 1 to N arguments, but not an Array. 23 | * @return {Object} the destination object 24 | */ 25 | function mixin(dest /*, sources... */) { 26 | var i, l, source, name; 27 | 28 | if (!dest) { dest = {}; } 29 | for (i = 1, l = arguments.length; i < l; i += 1) { 30 | source = arguments[i]; 31 | for (name in source) { 32 | if (!(name in dest) || (dest[name] !== source[name] && (!(name in empty) || empty[name] !== source[name]))) { 33 | dest[name] = source[name]; 34 | } 35 | } 36 | } 37 | 38 | return dest; // Object 39 | } 40 | 41 | return mixin; 42 | 43 | }); 44 | 45 | }( 46 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 47 | // Boilerplate for AMD and Node 48 | )); 49 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/rest/util/normalizeHeaderName.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 the original author or authors 3 | * @license MIT, see LICENSE.txt for details 4 | * 5 | * @author Scott Andrews 6 | */ 7 | 8 | (function (define) { 9 | 'use strict'; 10 | 11 | define(function (/* require */) { 12 | 13 | /** 14 | * Normalize HTTP header names using the pseudo camel case. 15 | * 16 | * For example: 17 | * content-type -> Content-Type 18 | * accepts -> Accepts 19 | * x-custom-header-name -> X-Custom-Header-Name 20 | * 21 | * @param {string} name the raw header name 22 | * @return {string} the normalized header name 23 | */ 24 | function normalizeHeaderName(name) { 25 | return name.toLowerCase() 26 | .split('-') 27 | .map(function (chunk) { return chunk.charAt(0).toUpperCase() + chunk.slice(1); }) 28 | .join('-'); 29 | } 30 | 31 | return normalizeHeaderName; 32 | 33 | }); 34 | 35 | }( 36 | typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } 37 | // Boilerplate for AMD and Node 38 | )); 39 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "when", 3 | "version": "3.4.5", 4 | "main": "when.js", 5 | "moduleType": [ 6 | "amd", 7 | "node" 8 | ], 9 | "description": "A lightweight Promises/A+ and when() implementation, plus other async goodies.", 10 | "keywords": [ 11 | "Promises/A+", 12 | "promises-aplus", 13 | "promise", 14 | "promises", 15 | "deferred", 16 | "deferreds", 17 | "when", 18 | "async", 19 | "asynchronous", 20 | "cujo" 21 | ], 22 | "homepage": "https://github.com/cujojs/when", 23 | "authors": [ 24 | "Brian Cavalier " 25 | ], 26 | "license": "MIT", 27 | "ignore": [ 28 | "**/.*", 29 | "**/*.md", 30 | "docs", 31 | "benchmark", 32 | "node_modules", 33 | "bower_components", 34 | "test", 35 | "build" 36 | ], 37 | "_release": "3.4.5", 38 | "_resolution": { 39 | "type": "version", 40 | "tag": "3.4.5", 41 | "commit": "b6c368ed70034e0589b37ba312df56f65fe753f1" 42 | }, 43 | "_source": "git://github.com/cujojs/when.git", 44 | "_target": "~3", 45 | "_originalSource": "when" 46 | } -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Open Source Initiative OSI - The MIT License 2 | 3 | http://www.opensource.org/licenses/mit-license.php 4 | 5 | Copyright (c) 2011 Brian Cavalier 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "when", 3 | "version": "3.4.5", 4 | "main": "when.js", 5 | "moduleType": ["amd", "node"], 6 | "description": "A lightweight Promises/A+ and when() implementation, plus other async goodies.", 7 | "keywords": ["Promises/A+", "promises-aplus", "promise", "promises", "deferred", "deferreds", "when", "async", "asynchronous", "cujo"], 8 | "homepage": "https://github.com/cujojs/when", 9 | "authors": [ 10 | "Brian Cavalier " 11 | ], 12 | "license": "MIT", 13 | "ignore": [ 14 | "**/.*", 15 | "**/*.md", 16 | "docs", 17 | "benchmark", 18 | "node_modules", 19 | "bower_components", 20 | "test", 21 | "build" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/delay.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2011-2013 original author or authors */ 2 | 3 | /** 4 | * delay.js 5 | * 6 | * Helper that returns a promise that resolves after a delay. 7 | * 8 | * @author Brian Cavalier 9 | * @author John Hann 10 | */ 11 | 12 | (function(define) { 13 | define(function(require) { 14 | 15 | var when = require('./when'); 16 | 17 | /** 18 | * @deprecated Use when(value).delay(ms) 19 | */ 20 | return function delay(msec, value) { 21 | return when(value).delay(msec); 22 | }; 23 | 24 | }); 25 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/es6-shim/Promise.browserify-es6.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | /** 6 | * ES6 global Promise shim 7 | */ 8 | var unhandledRejections = require('../lib/decorators/unhandledRejection'); 9 | var PromiseConstructor = unhandledRejections(require('../lib/Promise')); 10 | 11 | module.exports = typeof global != 'undefined' ? (global.Promise = PromiseConstructor) 12 | : typeof self != 'undefined' ? (self.Promise = PromiseConstructor) 13 | : PromiseConstructor; 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/Promise.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function (require) { 7 | 8 | var makePromise = require('./makePromise'); 9 | var Scheduler = require('./Scheduler'); 10 | var async = require('./async'); 11 | 12 | return makePromise({ 13 | scheduler: new Scheduler(async) 14 | }); 15 | 16 | }); 17 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); 18 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/TimeoutError.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function() { 7 | 8 | /** 9 | * Custom error type for promises rejected by promise.timeout 10 | * @param {string} message 11 | * @constructor 12 | */ 13 | function TimeoutError (message) { 14 | Error.call(this); 15 | this.message = message; 16 | this.name = TimeoutError.name; 17 | if (typeof Error.captureStackTrace === 'function') { 18 | Error.captureStackTrace(this, TimeoutError); 19 | } 20 | } 21 | 22 | TimeoutError.prototype = Object.create(Error.prototype); 23 | TimeoutError.prototype.constructor = TimeoutError; 24 | 25 | return TimeoutError; 26 | }); 27 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/decorators/fold.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | /** @author Jeff Escalante */ 5 | 6 | (function(define) { 'use strict'; 7 | define(function() { 8 | 9 | return function fold(Promise) { 10 | 11 | Promise.prototype.fold = function(f, z) { 12 | var promise = this._beget(); 13 | 14 | this._handler.fold(function(z, x, to) { 15 | Promise._handler(z).fold(function(x, z, to) { 16 | to.resolve(f.call(this, z, x)); 17 | }, x, this, to); 18 | }, z, promise._handler.receiver, promise._handler); 19 | 20 | return promise; 21 | }; 22 | 23 | return Promise; 24 | }; 25 | 26 | }); 27 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); 28 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/decorators/inspect.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function() { 7 | 8 | return function inspection(Promise) { 9 | 10 | Promise.prototype.inspect = function() { 11 | return inspect(Promise._handler(this)); 12 | }; 13 | 14 | function inspect(handler) { 15 | var state = handler.state(); 16 | 17 | if(state === 0) { 18 | return { state: 'pending' }; 19 | } 20 | 21 | if(state > 0) { 22 | return { state: 'fulfilled', value: handler.value }; 23 | } 24 | 25 | return { state: 'rejected', reason: handler.value }; 26 | } 27 | 28 | return Promise; 29 | }; 30 | 31 | }); 32 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); 33 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/decorators/progress.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function() { 7 | 8 | return function progress(Promise) { 9 | 10 | /** 11 | * Register a progress handler for this promise 12 | * @param {function} onProgress 13 | * @returns {Promise} 14 | */ 15 | Promise.prototype.progress = function(onProgress) { 16 | return this.then(void 0, void 0, onProgress); 17 | }; 18 | 19 | return Promise; 20 | }; 21 | 22 | }); 23 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); 24 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/decorators/with.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function() { 7 | 8 | return function addWith(Promise) { 9 | /** 10 | * Returns a promise whose handlers will be called with `this` set to 11 | * the supplied receiver. Subsequent promises derived from the 12 | * returned promise will also have their handlers called with receiver 13 | * as `this`. Calling `with` with undefined or no arguments will return 14 | * a promise whose handlers will again be called in the usual Promises/A+ 15 | * way (no `this`) thus safely undoing any previous `with` in the 16 | * promise chain. 17 | * 18 | * WARNING: Promises returned from `with`/`withThis` are NOT Promises/A+ 19 | * compliant, specifically violating 2.2.5 (http://promisesaplus.com/#point-41) 20 | * 21 | * @param {object} receiver `this` value for all handlers attached to 22 | * the returned promise. 23 | * @returns {Promise} 24 | */ 25 | Promise.prototype['with'] = Promise.prototype.withThis = function(receiver) { 26 | var p = this._beget(); 27 | var child = p._handler; 28 | child.receiver = receiver; 29 | this._handler.chain(child, receiver); 30 | return p; 31 | }; 32 | 33 | return Promise; 34 | }; 35 | 36 | }); 37 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); 38 | 39 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/liftAll.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function() { 7 | 8 | return function liftAll(liftOne, combine, dst, src) { 9 | if(typeof combine === 'undefined') { 10 | combine = defaultCombine; 11 | } 12 | 13 | return Object.keys(src).reduce(function(dst, key) { 14 | var f = src[key]; 15 | return typeof f === 'function' ? combine(dst, liftOne(f), key) : dst; 16 | }, typeof dst === 'undefined' ? defaultDst(src) : dst); 17 | }; 18 | 19 | function defaultCombine(o, f, k) { 20 | o[k] = f; 21 | return o; 22 | } 23 | 24 | function defaultDst(src) { 25 | return typeof src === 'function' ? src.bind() : Object.create(src); 26 | } 27 | }); 28 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); 29 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/lib/timer.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function(require) { 7 | /*global setTimeout,clearTimeout*/ 8 | var cjsRequire, vertx, setTimer, clearTimer; 9 | 10 | cjsRequire = require; 11 | 12 | try { 13 | vertx = cjsRequire('vertx'); 14 | setTimer = function (f, ms) { return vertx.setTimer(ms, f); }; 15 | clearTimer = vertx.cancelTimer; 16 | } catch (e) { 17 | // NOTE: Truncate decimals to workaround node 0.10.30 bug: 18 | // https://github.com/joyent/node/issues/8167 19 | setTimer = function(f, ms) { return setTimeout(f, ms|0); }; 20 | clearTimer = function(t) { return clearTimeout(t); }; 21 | } 22 | 23 | return { 24 | set: setTimer, 25 | clear: clearTimer 26 | }; 27 | 28 | }); 29 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); 30 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/monitor.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function(require) { 7 | 8 | var PromiseMonitor = require('./monitor/PromiseMonitor'); 9 | var ConsoleReporter = require('./monitor/ConsoleReporter'); 10 | 11 | var promiseMonitor = new PromiseMonitor(new ConsoleReporter()); 12 | 13 | return function(Promise) { 14 | return promiseMonitor.monitor(Promise); 15 | }; 16 | }); 17 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); 18 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/monitor/console.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2010-2014 original author or authors */ 2 | /** @author Brian Cavalier */ 3 | /** @author John Hann */ 4 | 5 | (function(define) { 'use strict'; 6 | define(function(require) { 7 | 8 | var monitor = require('../monitor'); 9 | var Promise = require('../when').Promise; 10 | 11 | return monitor(Promise); 12 | 13 | }); 14 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); 15 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/node/function.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2013 original author or authors */ 2 | 3 | /** 4 | * @author Brian Cavalier 5 | */ 6 | (function(define) { 'use strict'; 7 | define(function(require) { 8 | 9 | // DEPRECATED: Use when/node instead 10 | return require('../node'); 11 | 12 | }); 13 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); })); 14 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/parallel.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2011-2013 original author or authors */ 2 | 3 | /** 4 | * parallel.js 5 | * 6 | * Run a set of task functions in parallel. All tasks will 7 | * receive the same args 8 | * 9 | * @author Brian Cavalier 10 | * @author John Hann 11 | */ 12 | 13 | (function(define) { 14 | define(function(require) { 15 | 16 | var when = require('./when'); 17 | var all = when.Promise.all; 18 | var slice = Array.prototype.slice; 19 | 20 | /** 21 | * Run array of tasks in parallel 22 | * @param tasks {Array|Promise} array or promiseForArray of task functions 23 | * @param [args] {*} arguments to be passed to all tasks 24 | * @return {Promise} promise for array containing the 25 | * result of each task in the array position corresponding 26 | * to position of the task in the tasks array 27 | */ 28 | return function parallel(tasks /*, args... */) { 29 | return all(slice.call(arguments, 1)).then(function(args) { 30 | return when.map(tasks, function(task) { 31 | return task.apply(void 0, args); 32 | }); 33 | }); 34 | }; 35 | 36 | }); 37 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/sequence.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2011-2013 original author or authors */ 2 | 3 | /** 4 | * sequence.js 5 | * 6 | * Run a set of task functions in sequence. All tasks will 7 | * receive the same args. 8 | * 9 | * @author Brian Cavalier 10 | * @author John Hann 11 | */ 12 | 13 | (function(define) { 14 | define(function(require) { 15 | 16 | var when = require('./when'); 17 | var all = when.Promise.all; 18 | var slice = Array.prototype.slice; 19 | 20 | /** 21 | * Run array of tasks in sequence with no overlap 22 | * @param tasks {Array|Promise} array or promiseForArray of task functions 23 | * @param [args] {*} arguments to be passed to all tasks 24 | * @return {Promise} promise for an array containing 25 | * the result of each task in the array position corresponding 26 | * to position of the task in the tasks array 27 | */ 28 | return function sequence(tasks /*, args... */) { 29 | var results = []; 30 | 31 | return all(slice.call(arguments, 1)).then(function(args) { 32 | return when.reduce(tasks, function(results, task) { 33 | return when(task.apply(void 0, args), addResult); 34 | }, results); 35 | }); 36 | 37 | function addResult(result) { 38 | results.push(result); 39 | return results; 40 | } 41 | }; 42 | 43 | }); 44 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/timeout.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright 2011-2013 original author or authors */ 2 | 3 | /** 4 | * timeout.js 5 | * 6 | * Helper that returns a promise that rejects after a specified timeout, 7 | * if not explicitly resolved or rejected before that. 8 | * 9 | * @author Brian Cavalier 10 | * @author John Hann 11 | */ 12 | 13 | (function(define) { 14 | define(function(require) { 15 | 16 | var when = require('./when'); 17 | 18 | /** 19 | * @deprecated Use when(trigger).timeout(ms) 20 | */ 21 | return function timeout(msec, trigger) { 22 | return when(trigger).timeout(msec); 23 | }; 24 | }); 25 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/unfold.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright B Cavalier & J Hann */ 2 | 3 | /** 4 | * unfold 5 | * @author: brian@hovercraftstudios.com 6 | */ 7 | (function(define) { 8 | define(function(require) { 9 | 10 | /** 11 | * @deprecated Use when.unfold 12 | */ 13 | return require('./when').unfold; 14 | 15 | }); 16 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); } ); 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/public/bower_components/when/unfold/list.js: -------------------------------------------------------------------------------- 1 | /** @license MIT License (c) copyright B Cavalier & J Hann */ 2 | 3 | (function(define) { 4 | define(function(require) { 5 | 6 | var unfold = require('../when').unfold; 7 | 8 | /** 9 | * @deprecated 10 | * Given a seed and generator, produces an Array. Effectively the 11 | * dual (opposite) of when.reduce() 12 | * @param {function} generator function that generates a value (or promise 13 | * for a value) to be placed in the resulting array 14 | * @param {function} condition given a seed, must return truthy if the unfold 15 | * should continue, or falsey if it should terminate 16 | * @param {*|Promise} seed any value or promise 17 | * @return {Promise} resulting array 18 | */ 19 | return function list(generator, condition, seed) { 20 | var result = []; 21 | 22 | return unfold(generator, condition, append, seed)['yield'](result); 23 | 24 | function append(value, newSeed) { 25 | result.push(value); 26 | return newSeed; 27 | } 28 | }; 29 | 30 | }); 31 | })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); 32 | 33 | -------------------------------------------------------------------------------- /src/main/resources/public/css/processor.css: -------------------------------------------------------------------------------- 1 | #map-canvas { 2 | height: 250px; 3 | margin-bottom: 25px; 4 | } 5 | 6 | input { 7 | margin-bottom: 25px; 8 | } 9 | 10 | .set-marker-cell { 11 | width: 2em; 12 | } 13 | --------------------------------------------------------------------------------