0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-14 02:24:00 +01:00
Bootstrap/docs/assets/js/customize.min.js

32 lines
1.6 MiB
JavaScript
Raw Normal View History

2018-12-10 10:15:54 +01:00
!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).autoprefixer=n()}}(function(){return function S(r,a,s){function y(t,n){if(!a[t]){if(!r[t]){var e="function"==typeof require&&require;if(!n&&e)return e(t,!0);if(l)return l(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var i=a[t]={exports:{}};r[t][0].call(i.exports,function(n){var e=r[t][1][n];return y(e||n)},i,i.exports,S,r,a,s)}return a[t].exports}for(var l="function"==typeof require&&require,n=0;n<s.length;n++)y(s[n]);return y}({1:[function(l,c,n){(function(){var t,o,i,r,n,e,a,s,y=[].slice;n=l("browserslist"),s=l("postcss"),o=l("./browsers"),i=l("./prefixes"),e=null,a=function(n){return"[object Object]"===Object.prototype.toString.apply(n)},(r=function(){var n,e;return 1===(e=1<=arguments.length?y.call(arguments,0):[]).length&&a(e[0])?(n=e[0],e=void 0):0===e.length||1===e.length&&null==e[0]?e=void 0:e.length<=2&&(e[0]instanceof Array||null==e[0])?(n=e[1],e=e[0]):"object"==typeof e[e.length-1]&&(n=e.pop()),null!=(null!=n?n.browsers:void 0)&&(e=n.browsers),new t(r.data,e,n)}).data={browsers:l("caniuse-db/data").agents,prefixes:l("../data/prefixes")},t=function(){function n(n,e,t){var o,i;this.data=n,this.reqs=e,this.options=null!=t?t:{},this.postcss=(o=this.postcss,i=this,function(){return o.apply(i,arguments)})}return n.prototype.process=function(n,e){return null==e&&(e={}),s(this.postcss).process(n,e)},n.prototype.postcss=function(n){var e;return e=this.prefixes({from:n.source.input.file}),!1!==this.options.remove&&e.processor.remove(n),e.processor.add(n)},n.prototype.prefixes=function(n){var e;return e=new o(r.data.browsers,this.reqs,n),new i(r.data.prefixes,e,this.options)},n.prototype.info=function(n){return e||(e=l("./info")),e(this.prefixes(n))},n}(),r.defaults=n.defaults,r.loadDefault=function(){return this.defaultCache||(this.defaultCache=r())},r.process=function(n,e){return null==e&&(e={}),this.loadDefault().process(n,e)},r.postcss=function(n){return r.loadDefault().postcss(n)},r.info=function(){return this.loadDefault().info()},c.exports=r}).call(this)},{"../data/prefixes":2,"./browsers":4,"./info":37,"./prefixes":41,browserslist:55,"caniuse-db/data":56,postcss:107}],2:[function(u,d,n){(function(){var e,n,t,o,i,r,a,y,c,s,l=[].slice;c=function(n){return n.sort(function(n,e){var t;return n=n.split(" "),e=e.split(" "),n[0]>e[0]?1:n[0]<e[0]?-1:0<(t=parseFloat(n[1])-parseFloat(e[1]))?1:t<0?-1:0})},t=function(n,e,t){var o,i,r,a,s,y,l;for(o in t||(t=(a=[e,{}])[0],e=a[1]),i=e.match||/\sx($|\s)/,r=[],s=n.stats)for(y in l=s[o])l[y].match(i)&&r.push(o+" "+y);return t(c(r))},y={},a=function(){var e,t,n,o,i,r,a,s;for(a=2<=arguments.length?l.call(arguments,0,n=arguments.length-1):(n=0,[]),e=arguments[n++],s=[],o=0,i=a.length;o<i;o++)r=a[o],y[r]={},s.push(function(){var n;for(t in n=[],e)n.push(y[r][t]=e[t]);return n}());return s},e=function(){var n,e,t,o,i,r,a;for(r=2<=arguments.length?l.call(arguments,0,e=arguments.length-1):(e=0,[]),n=arguments[e++],a=[],t=0,o=r.length;t<o;t++)i=r[t],a.push(y[i].browsers=c(y[i].browsers.concat(n.browsers)));return a},d.exports=y,t(u("caniuse-db/features-json/border-radius"),function(n){return a("border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius",{mistakes:["-ms-","-o-"],transition:!0,browsers:n})}),t(u("caniuse-db/features-json/css-boxshadow"),function(n){return a("box-shadow",{transition:!0,browsers:n})}),t(u("caniuse-db/features-json/css-animation"),function(n){return a("animation","animation-name","animation-duration","animation-delay","animation-direction","animation-fill-mode","animation-iteration-count","animation-play-state","animation-timing-function","@keyframes",{mistakes:["-ms-"],browsers:n})}),t(u("caniuse-db/features-json/css-transitions"),function(n){return a("transition","transition-property","transition-duratio
/*!
2014-11-05 00:36:52 +01:00
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
2018-12-10 10:15:54 +01:00
var o=n("base64-js"),r=n("ieee754"),s=n("is-array");t.Buffer=c,t.SlowBuffer=function L(n,e){if(!(this instanceof L))return new L(n,e);var t=new c(n,e);delete t.parent;return t},t.INSPECT_MAX_BYTES=50,c.poolSize=8192;var y=1073741823,l={};function c(n,e){var t=this;if(!(t instanceof c))return new c(n,e);var o,i,r=typeof n;if("number"===r)o=+n;else if("string"===r)o=c.byteLength(n,e);else{if("object"!==r||null===n)throw new TypeError("must start with number, buffer, array or string");"Buffer"===n.type&&s(n.data)&&(n=n.data),o=+n.length}if(y<o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");if(o<0?o=0:o>>>=0,c.TYPED_ARRAY_SUPPORT?t=c._augment(new Uint8Array(o)):(t.length=o,t._isBuffer=!0),c.TYPED_ARRAY_SUPPORT&&"number"==typeof n.byteLength)t._set(n);else if(function a(n){return s(n)||c.isBuffer(n)||n&&"object"==typeof n&&"number"==typeof n.length}(n))if(c.isBuffer(n))for(i=0;i<o;i++)t[i]=n.readUInt8(i);else for(i=0;i<o;i++)t[i]=(n[i]%256+256)%256;else if("string"===r)t.write(n,0,e);else if("number"===r&&!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;i++)t[i]=0;return 0<o&&o<=c.poolSize&&(t.parent=l),t}function d(n,e,t,o){return E(function i(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e}(e),n,t,o)}function i(n,e,t){return 0===e&&t===n.length?o.fromByteArray(n):o.fromByteArray(n.slice(e,t))}function a(n,e,t){var o="",i="";t=Math.min(n.length,t);for(var r=e;r<t;r++)n[r]<=127?(o+=v(i)+String.fromCharCode(n[r]),i=""):i+="%"+n[r].toString(16);return o+v(i)}function u(n,e,t){var o="";t=Math.min(n.length,t);for(var i=e;i<t;i++)o+=String.fromCharCode(127&n[i]);return o}function p(n,e,t){var o="";t=Math.min(n.length,t);for(var i=e;i<t;i++)o+=String.fromCharCode(n[i]);return o}function g(n,e,t){var o=n.length;(!e||e<0)&&(e=0),(!t||t<0||o<t)&&(t=o);for(var i="",r=e;r<t;r++)i+=N(n[r]);return i}function h(n,e,t){for(var o=n.slice(e,t),i="",r=0;r<o.length;r+=2)i+=String.fromCharCode(o[r]+256*o[r+1]);return i}function f(n,e,t){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(t<n+e)throw new RangeError("Trying to access beyond buffer length")}function A(n,e,t,o,i,r){if(!c.isBuffer(n))throw new TypeError("buffer must be a Buffer instance");if(i<e||e<r)throw new RangeError("value is out of bounds");if(t+o>n.length)throw new RangeError("index out of range")}function x(n,e,t,o){e<0&&(e=65535+e+1);for(var i=0,r=Math.min(n.length-t,2);i<r;i++)n[t+i]=(e&255<<8*(o?i:1-i))>>>8*(o?i:1-i)}function M(n,e,t,o){e<0&&(e=4294967295+e+1);for(var i=0,r=Math.min(n.length-t,4);i<r;i++)n[t+i]=e>>>8*(o?i:3-i)&255}function m(n,e,t,o,i,r){if(i<e||e<r)throw new RangeError("value is out of bounds");if(t+o>n.length)throw new RangeError("index out of range");if(t<0)throw new RangeError("index out of range")}function w(n,e,t,o,i){return i||m(n,e,t,4,34028234663852886e22,-34028234663852886e22),r.write(n,e,t,o,23,4),t+4}function b(n,e,t,o,i){return i||m(n,e,t,8,17976931348623157e292,-17976931348623157e292),r.write(n,e,t,o,52,8),t+8}c.TYPED_ARRAY_SUPPORT=function(){try{var n=new ArrayBuffer(0),e=new Uint8Array(n);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(S){return!1}}(),c.isBuffer=function(n){return!(null==n||!n._isBuffer)},c.compare=function(n,e){if(!c.isBuffer(n)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var t=n.length,o=e.length,i=0,r=Math.min(t,o);i<r&&n[i]===e[i];i++);return i!==r&&(t=n[i],o=e[i]),t<o?-1:o<t?1:0},c.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(n,e){if(!s(n))throw new TypeError("list argument must be an Array of Buffers.");if(0===n.length)return new c(0);if(1===n.length)return n[0];var t;if(e===undefined)for(t=e=0;t<n.length;t++)e+=n[t].length;var o=new c(e),i=0;for(t=0;t<n.length;t++){var r=n[t];r.copy(o,i),i+=r.length}return o},c.byteLength=function
/** vim: et:ts=4:sw=4:sts=4
2014-11-05 00:36:52 +01:00
* @license amdefine 0.1.0 Copyright (c) 2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/amdefine for details
*/
2019-02-13 15:23:41 +01:00
"use strict";n.exports=function t(s,y){var u,d,p={},g={},l=!1,e=o("path");function h(n,e){var t;return n&&"."===n.charAt(0)&&e&&(function o(n){var e,t;for(e=0;n[e];e+=1)if("."===(t=n[e]))n.splice(e,1),e-=1;else if(".."===t){if(1===e&&(".."===n[2]||".."===n[0]))break;0<e&&(n.splice(e-1,2),e-=2)}}(t=(t=(t=e.split("/")).slice(0,t.length-1)).concat(n.split("/"))),n=t.join("/")),n}function f(n,e,t){var o,i,r,a;if(n)i=g[n]={},o=u(y,i,r={id:n,uri:c,exports:i},n);else{if(l)throw new Error("amdefine with no module ID cannot be called more than once per file.");l=!0,i=s.exports,o=u(y,i,r=s,s.id)}e&&(e=e.map(function(n){return o(n)})),(a="function"==typeof t?t.apply(r.exports,e):t)!==undefined&&(r.exports=a,n&&(g[n]=r.exports))}function n(n,e,t){Array.isArray(n)?(t=e,e=n,n=undefined):"string"!=typeof n&&(t=n,n=e=undefined),e&&!Array.isArray(e)&&(t=e,e=undefined),e||(e=["require","exports","module"]),n?p[n]=[n,e,t]:f(n,e,t)}return u=function(t,o,i,r){function n(n,e){if("string"==typeof n)return d(t,o,i,n,r);n=n.map(function(n){return d(t,o,i,n,r)}),a.nextTick(function(){e.apply(null,n)})}return n.toUrl=function(n){return 0===n.indexOf(".")?h(n,e.dirname(i.filename)):n},n},y=y||function(){return s.require.apply(s,arguments)},d=function(n,e,t,o,i){var r,a,s=o.indexOf("!"),y=o;if(-1!==s)return r=o.substring(0,s),o=o.substring(s+1,o.length),o=(a=d(n,e,t,r,i)).normalize?a.normalize(o,function l(e){return function(n){return h(n,e)}}(i)):h(o,i),g[o]||a.load(o,u(n,e,t,i),function c(e){function n(n){g[e]=n}return n.fromText=function(n,e){throw new Error("amdefine does not implement load.fromText")},n}(o),{}),g[o];if("require"===(o=h(o,i)))return u(n,e,t,i);if("exports"===o)return e;if("module"===o)return t;if(g.hasOwnProperty(o))return g[o];if(p[o])return f.apply(null,p[o]),g[o];if(n)return n(y);throw new Error("No module with ID: "+o)},n.require=function(n){return g[n]?g[n]:p[n]?(f.apply(null,p[n]),g[n]):void 0},n.amd={},n}}).call(this,o("_process"),"/../node_modules/postcss/node_modules/source-map/node_modules/amdefine/amdefine.js")},{_process:54,path:53}]},{},[1])(1)}),function(h,j){function k(n){return h.less[n.split("/")[1]]}function u(n,e){"undefined"!=typeof console&&_.logLevel>=e&&console.log("less: "+n)}function d(n){return n.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function p(n,e,t){var o=e.href||"",i="less:"+(e.title||d(o)),r=document.getElementById(i),a=!1,s=document.createElement("style");s.setAttribute("type","text/css"),e.media&&s.setAttribute("media",e.media),s.id=i,s.styleSheet||(s.appendChild(document.createTextNode(n)),a=null!==r&&0<r.childNodes.length&&0<s.childNodes.length&&r.firstChild.nodeValue===s.firstChild.nodeValue);var y=document.getElementsByTagName("head")[0];if(null===r||!1===a){var l=e&&e.nextSibling||null;l?l.parentNode.insertBefore(s,l):y.appendChild(s)}if(r&&!1===a&&r.parentNode.removeChild(r),s.styleSheet)try{s.styleSheet.cssText=n}catch(g){throw new Error("Couldn't reassign styleSheet.cssText.")}if(t&&tn){u("saving "+o+" to cache.",q.info);try{tn.setItem(o,n),tn.setItem(o+":timestamp",t)}catch(g){u("failed to save",q.errors)}}}function l(n){return _.postProcessor&&"function"==typeof _.postProcessor&&(n=_.postProcessor.call(n,n)||n),n}function c(n,e){_.errorReporting&&"html"!==_.errorReporting?"console"===_.errorReporting?function a(n,e){var t=n.filename||e,o=[],i=(n.type||"Syntax")+"Error: "+(n.message||"There is an error in your .less file")+" in "+t+" ",r=function(n,e,t){n.extract[e]!==j&&o.push("{line} {content}".replace(/\{line\}/,(parseInt(n.line,10)||0)+(e-1)).replace(/\{class\}/,t).replace(/\{content\}/,n.extract[e]))};n.extract?(r(n,0,""),r(n,1,"line"),r(n,2,""),i+="on line "+n.line+", column "+(n.column+1)+":\n"+o.join("\n")):n.stack&&(i+=n.stack),u(i,q.errors)}(n,e):"function"==typeof _.errorReporting&&_.errorReporting("add",n,e):function c(n,e){var t,o,i="less-error-message:"+d(e||""),r=document.createElement("div"),a=[],s=n.filename||e,y=s.match(/([^\/]+(\?.*)?)$/)[1];r.id=i,r.className="less-error-message",o="
2018-12-10 10:15:54 +01:00
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
function(n){"use strict";if(n.URL=n.URL||n.webkitURL,n.Blob&&n.URL)try{return new Blob}catch(t){}var s=n.BlobBuilder||n.WebKitBlobBuilder||n.MozBlobBuilder||function(n){var s=function(n){return Object.prototype.toString.call(n).match(/^\[object\s(.*)\]$/)[1]},e=function(){this.data=[]},y=function(n,e,t){this.data=n,this.size=n.length,this.type=e,this.encoding=t},t=e.prototype,o=y.prototype,l=n.FileReaderSync,c=function(n){this.code=this[this.name=n]},i="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),r=i.length,a=n.URL||n.webkitURL||n,u=a.createObjectURL,d=a.revokeObjectURL,p=a,g=n.btoa,h=n.atob,f=n.ArrayBuffer,A=n.Uint8Array,x=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(y.fake=o.fake=!0;r--;)c.prototype[i[r]]=r+1;return a.createObjectURL||(p=n.URL=function(n){var e,t=document.createElementNS("http://www.w3.org/1999/xhtml","a");return t.href=n,"origin"in t||("data:"===t.protocol.toLowerCase()?t.origin=null:(e=n.match(x),t.origin=e&&e[1])),t}),p.createObjectURL=function(n){var e,t=n.type;return null===t&&(t="application/octet-stream"),n instanceof y?(e="data:"+t,"base64"===n.encoding?e+";base64,"+n.data:"URI"===n.encoding?e+","+decodeURIComponent(n.data):g?e+";base64,"+g(n.data):e+","+encodeURIComponent(n.data)):u?u.call(a,n):void 0},p.revokeObjectURL=function(n){"data:"!==n.substring(0,5)&&d&&d.call(a,n)},t.append=function(n){var e=this.data;if(A&&(n instanceof f||n instanceof A)){for(var t="",o=new A(n),i=0,r=o.length;i<r;i++)t+=String.fromCharCode(o[i]);e.push(t)}else if("Blob"===s(n)||"File"===s(n)){if(!l)throw new c("NOT_READABLE_ERR");var a=new l;e.push(a.readAsBinaryString(n))}else n instanceof y?"base64"===n.encoding&&h?e.push(h(n.data)):"URI"===n.encoding?e.push(decodeURIComponent(n.data)):"raw"===n.encoding&&e.push(n.data):("string"!=typeof n&&(n+=""),e.push(unescape(encodeURIComponent(n))))},t.getBlob=function(n){return arguments.length||(n=null),new y(this.data.join(""),n,"raw")},t.toString=function(){return"[object BlobBuilder]"},o.slice=function(n,e,t){var o=arguments.length;return o<3&&(t=null),new y(this.data.slice(n,1<o?e:this.data.length),t,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},e}(n);n.Blob=function(n,e){var t=e&&e.type||"",o=new s;if(n)for(var i=0,r=n.length;i<r;i++)Uint8Array&&n[i]instanceof Uint8Array?o.append(n[i].buffer):o.append(n[i]);var a=o.getBlob(t);return!a.slice&&a.webkitSlice&&(a.slice=a.webkitSlice),a};var e=Object.getPrototypeOf||function(n){return n.__proto__};n.Blob.prototype=e(new n.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this);
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
var saveAs=saveAs||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(g){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var h=g.document,f=function(){return g.URL||g.webkitURL||g},A=h.createElementNS("http://www.w3.org/1999/xhtml","a"),x="download"in A,M=g.webkitRequestFileSystem,m=g.requestFileSystem||M||g.mozRequestFileSystem,a=function(n){(g.setImmediate||g.setTimeout)(function(){throw n},0)},w="application/octet-stream",b=0,T=function(n){var e=function(){"string"==typeof n?f().revokeObjectURL(n):n.remove()};g.chrome?e():setTimeout(e,500)},I=function(n,e,t){for(var o=(e=[].concat(e)).length;o--;){var i=n["on"+e[o]];if("function"==typeof i)try{i.call(n,t||n)}catch(r){a(r)}}},t=function(o,t){var n,i,e,r,a,s=this,y=o.type,l=!1,c=function(){I(s,"writestart progress write writeend".split(" "))},u=function(){(!l&&n||(n=f().createObjectURL(o)),i)?i.location.href=n:g.open(n,"_blank")==undefined&&"undefined"!=typeof safari&&(g.location.href=n);s.readyState=s.DONE,c(),T(n)},d=function(n){return function(){if(s.readyState!==s.DONE)return n.apply(this,arguments)}},p={create:!0,exclusive:!1};if(s.readyState=s.INIT,t||(t="download"),x)return n=f().createObjectURL(o),A.href=n,A.download=t,r=A,(a=h.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,g,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(a),s.readyState=s.DONE,c(),void T(n);/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)&&(o=new Blob(["\ufeff",o],{type:o.type})),g.chrome&&y&&y!==w&&(e=o.slice||o.webkitSlice,o=e.call(o,0,o.size,w),l=!0),M&&"download"!==t&&(t+=".download"),(y===w||M)&&(i=g),m?(b+=o.size,m(g.TEMPORARY,b,d(function(n){n.root.getDirectory("saved",p,d(function(n){var e=function(){n.getFile(t,p,d(function(t){t.createWriter(d(function(e){e.onwriteend=function(n){i.location.href=t.toURL(),s.readyState=s.DONE,I(s,"writeend",n),T(t)},e.onerror=function(){var n=e.error;n.code!==n.ABORT_ERR&&u()},"writestart progress write abort".split(" ").forEach(function(n){e["on"+n]=s["on"+n]}),e.write(o),s.abort=function(){e.abort(),s.readyState=s.DONE},s.readyState=s.WRITING}),u)}),u)};n.getFile(t,{create:!1},d(function(n){n.remove(),e()}),d(function(n){n.code===n.NOT_FOUND_ERR?e():u()}))}),u)}),u)):u()},n=t.prototype;return n.abort=function(){this.readyState=this.DONE,I(this,"abort")},n.readyState=n.INIT=0,n.WRITING=1,n.DONE=2,n.error=n.onwritestart=n.onprogress=n.onwrite=n.onabort=n.onerror=n.onwriteend=null,function(n,e){return new t(n,e)}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs});
/*!
2019-02-13 15:23:41 +01:00
* Bootstrap v3.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 Twitter, Inc.
2015-06-16 18:06:51 +02:00
* Licensed under the MIT license
*/
2019-02-13 15:23:41 +01:00
var __js={"affix.js":"/* ========================================================================\n * Bootstrap: affix.js v3.4.1\n * https://getbootstrap.com/docs/3.4/javascript/#affix\n * ========================================================================\n * Copyright 2011-2019 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n 'use strict';\n\n // AFFIX CLASS DEFINITION\n // ======================\n\n var Affix = function (element, options) {\n this.options = $.extend({}, Affix.DEFAULTS, options)\n\n var target = this.options.target === Affix.DEFAULTS.target ? $(this.options.target) : $(document).find(this.options.target)\n\n this.$target = target\n .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))\n .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))\n\n this.$element = $(element)\n this.affixed = null\n this.unpin = null\n this.pinnedOffset = null\n\n this.checkPosition()\n }\n\n Affix.VERSION = '3.4.1'\n\n Affix.RESET = 'affix affix-top affix-bottom'\n\n Affix.DEFAULTS = {\n offset: 0,\n target: window\n }\n\n Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {\n var scrollTop = this.$target.scrollTop()\n var position = this.$element.offset()\n var targetHeight = this.$target.height()\n\n if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false\n\n if (this.affixed == 'bottom') {\n if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'\n return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'\n }\n\n var initializing = this.affixed == null\n var colliderTop = initializing ? scrollTop : position.top\n var colliderHeight = initializing ? targetHeight : height\n\n if (offsetTop != null && scrollTop <= offsetTop) return 'top'\n if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'\n\n return false\n }\n\n Affix.prototype.getPinnedOffset = function () {\n if (this.pinnedOffset) return this.pinnedOffset\n this.$element.removeClass(Affix.RESET).addClass('affix')\n var scrollTop = this.$target.scrollTop()\n var position = this.$element.offset()\n return (this.pinnedOffset = position.top - scrollTop)\n }\n\n Affix.prototype.checkPositionWithEventLoop = function () {\n setTimeout($.proxy(this.checkPosition, this), 1)\n }\n\n Affix.prototype.checkPosition = function () {\n if (!this.$element.is(':visible')) return\n\n var height = this.$element.height()\n var offset = this.options.offset\n var offsetTop = offset.top\n var offsetBottom = offset.bottom\n var scrollHeight = Math.max($(document).height(), $(document.body).height())\n\n if (typeof offset != 'object') offsetBottom = offsetTop = offset\n if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)\n if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)\n\n var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)\n\n if (this.affixed != affix) {\n if (this.unpin != null) this.$element.css('top', '')\n\n var affixType = 'affix' + (affix ? '-' + affix : '')\n var e = $.Event(affixType + '.bs.affix')\n\n this.$element.trigger(e)\n\n if (e.isDefaultPrevented()) return\n\n this.affixed = affix\n this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null\n\n this.$element\n .removeClass(Affix.RESET)\n .addClass(affixType)\n .trigger(affixType.replace('affix', 'affixed') + '.bs.affix')\n }\n\n if (affix == 'bottom') {\n this.$element.offset({\n top: scrollHeight - height - offsetBottom\n })\n }\n }\n\n\n // AFFIX PLUGIN DEFINITION\n
2018-12-10 10:15:54 +01:00
/*!
2019-02-13 15:23:41 +01:00
* Bootstrap Customizer (https://getbootstrap.com/customize/)
* Copyright 2011-2019 Twitter, Inc.
*
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
2015-05-17 11:43:04 +02:00
* details, see https://creativecommons.org/licenses/by/3.0/.
*/
2019-02-13 15:23:41 +01:00
window.onload=function(){"use strict";var a="/*!\n * Bootstrap v3.4.1 (https://getbootstrap.com/)\n * Copyright 2011-"+(new Date).getFullYear()+" Twitter, Inc.\n * Licensed under the MIT license\n */\n\n",i=$("#import-drop-target");function p(n,e){throw $('<div id="bsCustomizerAlert" class="bs-customizer-alert"><div class="container"><a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right" aria-label="Close" role="button"><span aria-hidden="true">&times;</span></a><p class="bs-customizer-alert-text"><span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span><span class="sr-only">Warning:</span>'+n+"</p>"+(e.message?$("<p></p>").text("Error: "+e.message)[0].outerHTML:"")+(e.extract?$('<pre class="bs-customizer-alert-extract"></pre>').text(e.extract.join("\n"))[0].outerHTML:"")+"</div></div>").appendTo("body").alert(),e}function r(n,e,t){$('<div class="alert alert-'+n+'">'+e+'<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>').insertAfter(t)}function s(n){if(n.js&&$("#plugin-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,n.js))}),n.css&&$("#less-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,n.css))}),n.vars)for(var e in n.vars)$('input[data-var="'+e+'"]').val(n.vars[e])}function c(n,i,r){var a=__less[n],e=function s(n){var r=/^@import \"(.*?)\";$/,e=__less[n].split("\n"),a=[];return $.each(e,function(n,e){var t=r.exec(e);if(t){var o=t[1],i=s(o);$.each(i,function(n,e){-1===$.inArray(e,a)&&a.push(e)}),a.push(o)}}),a}(n);return $.each(e,function(n,e){var t=i[e];(t||null==t)&&(a+=__less[e]),"variables.less"===e&&r&&(a+=function o(n){var e="";for(var t in n)e+=t+": "+n[t]+";\n";return e+"\n\n"}(r))}),a=a.replace(/@import[^\n]*/gi,"")}function u(n,o,i){var r=$.Deferred();return new less.Parser({paths:["variables.less","mixins.less"],optimization:0,filename:o+".css"}).parse(n,function(n,e){if(n)return r.reject(n);try{i[o+".css"]=e.toCSS(),i[o+".min.css"]=e.toCSS({compress:!0})}catch(t){return r.reject(t)}r.resolve()}),r.promise()}function y(n){var e=$("#plugin-section input:checked"),t=__configBridge.jqueryCheck.join("\n"),o=__configBridge.jqueryVersionCheck.join("\n");if(!e.length)return!1;var i=e.map(function(){return __js[this.value]}).toArray().join("\n");return{"bootstrap.js":(n+=a)+(i=t+o+i),"bootstrap.min.js":n+function r(n){var e=UglifyJS.parse(n);e.figure_out_scope();var t=UglifyJS.Compressor(),o=e.transform(t);o.figure_out_scope(),o.compute_char_frequency(),o.mangle_names();var i=UglifyJS.OutputStream();return o.print(i),i.toString()}(i)}}$("#import-file-select").on("change",function l(n){n.stopPropagation(),n.preventDefault();var e=n.originalEvent.target.files[0],t=new FileReader;t.onload=function(n){var e=n.target.result;try{var t=JSON.parse(e);if(!$.isPlainObject(t))throw new Error("JSON data from config file is not an object.");s(t),r("success","<strong>Woohoo!</strong> Your configuration was successfully uploaded. Tweak your settings, then hit Download.",i)}catch(o){return r("danger","<strong>Shucks.</strong> We can only read valid <code>.json</code> files. Please try again.",i)}},t.readAsText(e,"utf-8")}),$("#import-manual-trigger").on("click",function n(){i.nextAll(".alert").remove()});var e=$("#less-section input"),t=$("#plugin-section input"),o=$("#less-variables-section input");$("#less-section .toggle").on("click",function(n){n.preventDefault(),e.prop("checked",!e.is(":checked"))}),$("#plugin-section .toggle").on("click",function(n){n.preventDefault(),t.prop("checked",!t.is(":checked"))}),$("#less-variables-section .toggle").on("click",function(n){n.preventDefault(),o.val("")}),$("[data-dependencies]").on("click",function(){if($(this).is(":checked")){var n=this.getAttribute("data-dependencies");if(n)for(var e=0,t=(n=n.split(",")).length;e<t;e++){var o=$('[value="'+n[e]+'"]');o&&o.prop("checked",!0)}}}),$("[data-dependents]").on("click",function(){if(!$(this).is(":checked")){var n=this.getAttribute("data-dependents");if(n)for(var e=0,t=(n