!function e(t,a,i){function s(r,n){if(!a[r]){if(!t[r]){var l="function"==typeof require&&require;if(!n&&l)return l(r,!0);if(o)return o(r,!0);var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d}var c=a[r]={exports:{}};t[r][0].call(c.exports,(function(e){return s(t[r][1][e]||e)}),c,c.exports,e,t,a,i)}return a[r].exports}for(var o="function"==typeof require&&require,r=0;rdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth .active"),r=s&&e.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);function n(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}o.length&&r?o.one("bsTransitionEnd",n).emulateTransitionEnd(t.TRANSITION_DURATION):n(),o.removeClass("in")};var i=e.fn.tab;e.fn.tab=a,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var s=function(t){t.preventDefault(),a.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery)},{}],6:[function(e,t,a){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,a,i){if(this.enabled=!0,this.type=t,this.$element=e(a),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=r){var n="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(n+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},a=this.getDefaults();return this._options&&e.each(this._options,(function(e,i){a[e]!=i&&(t[e]=i)})),t},t.prototype.enter=function(t){var a=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(a||(a=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,a)),t instanceof e.Event&&(a.inState["focusin"==t.type?"focus":"hover"]=!0),a.tip().hasClass("in")||"in"==a.hoverState)a.hoverState="in";else{if(clearTimeout(a.timeout),a.hoverState="in",!a.options.delay||!a.options.delay.show)return a.show();a.timeout=setTimeout((function(){"in"==a.hoverState&&a.show()}),a.options.delay.show)}},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var a=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(a||(a=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,a)),t instanceof e.Event&&(a.inState["focusout"==t.type?"focus":"hover"]=!1),!a.isInStateTrue()){if(clearTimeout(a.timeout),a.hoverState="out",!a.options.delay||!a.options.delay.hide)return a.hide();a.timeout=setTimeout((function(){"out"==a.hoverState&&a.hide()}),a.options.delay.hide)}},t.prototype.show=function(){var a=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(a);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(a.isDefaultPrevented()||!i)return;var s=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var n="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(n);d&&(n=n.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),p=o[0].offsetWidth,u=o[0].offsetHeight;if(d){var h=n,m=this.getPosition(this.$viewport);n="bottom"==n&&c.bottom+u>m.bottom?"top":"top"==n&&c.top-um.width?"left":"left"==n&&c.left-pr.top+r.height&&(s.top=r.top+r.height-l)}else{var d=t.left-o,c=t.left+o+a;dr.right&&(s.left=r.left+r.width-c)}return s},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var a=this;t&&((a=e(t.currentTarget).data("bs."+this.type))||(a=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,a))),t?(a.inState.click=!a.inState.click,a.isInStateTrue()?a.enter(a):a.leave(a)):a.tip().hasClass("in")?a.leave(a):a.enter(a)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))};var a=e.fn.tooltip;e.fn.tooltip=function(a){return this.each((function(){var s=e(this),o=s.data("bs.tooltip"),r="object"==i(a)&&a;!o&&/destroy|hide/.test(a)||(o||s.data("bs.tooltip",o=new t(this,r)),"string"==typeof a&&o[a]())}))},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=a,this}}(jQuery)},{}],7:[function(e,t,a){"use strict";e("./jquery.lazyload"),e("./jquery-smartphoto");var s=e("./social-share");!function(e){var t=e(window),a=navigator.userAgent.toLowerCase(),o=1,r=[],n=void 0!==_wpcom_js.webp&&_wpcom_js.webp?_wpcom_js.webp:null;(e(".wpcom-user-list").length||e(".wpcom-member").length)&&(o=0),e('[data-toggle="tooltip"]').tooltip(),"undefined"!=typeof AOS&&AOS.init(),o&&void 0!==_wpcom_js.lightbox&&1==_wpcom_js.lightbox&&e(".entry-content img").each((function(t,i){var s=e(i),o=s.parent(),n=s.data("original");if((n=n||s.attr("src"))&&n.match(/^\/\//)&&(n=window.location.protocol+n),"a"===o.prop("tagName").toLowerCase()){var l=o.attr("href");(l==n||l&&l.match(/.*(\.png|\.jpg|\.jpeg|\.gif|\.webp|\.bmp)$/i))&&(o.addClass("j-wpcom-lightbox"),"micromessenger"!=a.match(/MicroMessenger/i)&&"baiduboxapp"!=a.match(/baiduboxapp/i)||r.push(n))}else s.replaceWith(''+i.outerHTML+""),"micromessenger"!=a.match(/MicroMessenger/i)&&"baiduboxapp"!=a.match(/baiduboxapp/i)||r.push(n)})),e.fn.extend({loading:function(t){var a=e(this);t?a.addClass("loading").prepend(''):a.removeClass("loading").find(".wi-loader").remove()}});var l=e("#wpcom-video, .j-wpcom-video, .wp-block-video video, .modules-video-player");function d(){e(".wpcom-adv-menu").each((function(t,a){var i=e(a),s=e(".wpcom-adv-menu"),o=e("body").width(),r=s.closest(".container").width();i.find(">.menu-item-style").each((function(t,a){var i=e(a),n=i.find(">.menu-item-wrap"),l=i.position().left,d=n.outerWidth(),c=s.offset().left-(o-r)/2,p="";l+d>r-c&&(p=-(i.offset().left+d-r-(o-r)/2)),n.css("left",p)}))}))}l.length&&e.ajax({url:"https://cdn.jsdelivr.net/npm/plyr@3.6.2/dist/plyr.min.js",dataType:"script",cache:!0,success:function(){e("#wpcom-video").length&&new Plyr("#wpcom-video",{update:!0,controls:["play-large","play","progress","current-time","mute","volume","pip","fullscreen"],ratio:"860:"+(void 0!==_wpcom_js.video_height?_wpcom_js.video_height:"483"),fullscreen:{enabled:!0,fallback:!0,iosNative:!0}}),e(".j-wpcom-video,.wp-block-video video").length&&Plyr.setup(".j-wpcom-video,.wp-block-video video",{update:!0,controls:["play-large","play","progress","current-time","mute","volume","pip","fullscreen"],ratio:"16:9",fullscreen:{enabled:!0,fallback:!0,iosNative:!0}});var t=e(".modules-video-player");if(t.length)for(var a=0;a-1&&i.push(a)})),i.length&&e.ajax({url:"https://cdn.jsdelivr.net/npm/hls.js@0.14.12/dist/hls.min.js",dataType:"script",cache:!0,success:function(){for(var t in i)if(Hls.isSupported()){var s=new Hls,o=e(i[t]).attr("src");o=o||e(i[t]).find("source").attr("src"),s.loadSource(o),s.attachMedia(i[t])}else i[t].src=source[a]}})}}),e(document).ready((function(){if("baiduboxapp"==a.match(/baiduboxapp/i))e(document).on("click","a.j-wpcom-lightbox",(function(t){t.preventDefault();var a="baiduboxapp://v19/utils/previewImage?params="+encodeURIComponent(JSON.stringify({urls:r,current:e(this).attr("href")})),i=document.createElement("iframe");i.style.display="none",i.src=a;var s=document.body;s.appendChild(i),setTimeout((function(){s.removeChild(i),i=null}),0)}));else{var o=e(".entry-content .j-wpcom-lightbox");o.length&&(o.find("noscript").remove(),o.SmartPhoto({nav:!1}))}e(".j-lazy").lazyload({webp:n,threshold:250,effect:"fadeIn"}),/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)&&e("body").addClass("is-mobile"),e(document).on("click",'a[href^="#"]',(function(t){var a=e(this).attr("role");if("tab"!=a&&"button"!=a&&(t.preventDefault(),this.hash)){var i=e(this.hash).length?e(this.hash).offset().top:0;i=i-e("header.header").outerHeight()-10,i=(i=e("#wpadminbar").length?i-e("#wpadminbar").outerHeight():i)<0?0:i,e("html, body").animate({scrollTop:i},400)}})).on("click",".j-footer-bar-icon",(function(t){t.preventDefault();var a=e(this),i='';return 0===e("#footer-bar").length?e("body").append(i):e("#footer-bar").find(".modal-body img").attr("src",a.attr("href")),e("#footer-bar").modal(),!1})),e('.wp-block-wpcom-tabs a[data-toggle="tab"]').on("shown.bs.tab",(function(t){e(window).trigger("scroll")}));var l=e(".wp-block-wpcom-accordion");l.on("shown.bs.collapse",(function(){e(window).trigger("scroll")})).find(".panel-heading .panel-title a").append(''),l.find(".panel-collapse.in").closest(".panel").find(".panel-title a").attr("aria-expanded","true"),window.location.base="MTI5NjQ=",e(".modal.modal-video").on("shown.bs.modal",(function(t){var a=e(this).closest(".video-wrap");e(".modal-body",this).html(a.find(".video-code").html());var s=e(this).find(".j-wpcom-video");s.length&&e.ajax({url:"https://cdn.jsdelivr.net/npm/plyr@3.6.2/dist/plyr.min.js",dataType:"script",cache:!0,success:function(){var t=s.attr("width")?s.attr("width"):s.width(),a=s.attr("height")?s.attr("height"):s.height();Plyr.setup(".j-wpcom-video",{update:!0,controls:["play-large","play","progress","current-time","mute","volume","pip","fullscreen"],ratio:t+":"+a,fullscreen:{enabled:!0,fallback:!0,iosNative:!0}});var o=[];s.each((function(t,a){var i=e(a).attr("src");(i=i||e(a).find("source").attr("src")).search(/(\.m3u8|m3u8\?)/i)>-1&&o.push(a)})),o.length&&e.ajax({url:"https://cdn.jsdelivr.net/npm/hls.js@0.14.12/dist/hls.min.js",dataType:"script",cache:!0,success:function(){for(var t in o)if(Hls.isSupported()){var a=new Hls,s=e(o[t]).attr("src");s=s||e(o[t]).find("source").attr("src"),a.loadSource(s),a.attachMedia(o[t])}else o[t].src=source[i]}})}})})).on("hidden.bs.modal",(function(t){e(".modal-body",this).html("")}));var c=0,p=setInterval((function(){c++,void 0!==window.wpcom_maps&&window.wpcom_maps.length?(clearInterval(p),function(){var t="\u6682\u672a\u8bbe\u7f6e\u5730\u56fe\u63a5\u53e3\uff0c\u5982\u679c\u60a8\u662f\u7f51\u7ad9\u7ba1\u7406\u5458\uff0c\u8bf7\u524d\u5f80\u3010\u4e3b\u9898\u8bbe\u7f6e>\u5e38\u89c4\u8bbe\u7f6e>\u5730\u56fe\u63a5\u53e3\u3011\u8fdb\u884c\u8bbe\u7f6e",a=[],i=[];for(var s in window.wpcom_maps)1==window.wpcom_maps[s].type?i.push(window.wpcom_maps[s]):a.push(window.wpcom_maps[s]);if(a.length&&!a[0].key)wpcom_alert(t);else if(a.length){window.HOST_TYPE="2",window.BMap_loadScriptTime=(new Date).getTime();var o="//api.map.baidu.com/getscript?v=2.0&ak="+a[0].key+"&services=&t=20200103103842";e.ajax({url:o,dataType:"script",cache:!0,success:function(){for(var e=[],t=[],i=[],s=0;s10&&clearInterval(p)}),1e3);e(document).on("DOMNodeInserted",".widget_shopping_cart_content,.woocommerce-cart-form",(function(){e(this).find(".j-lazy").lazyload({webp:n,threshold:250,effect:"fadeIn"}),e(window).trigger("scroll")})).on("DOMNodeInserted","header.header",(function(){d()})).on("DOMSubtreeModified","header.header .wpcom-adv-menu>li>a>img",(function(){setTimeout((function(){d()}),300)})),e("header.header").trigger("DOMNodeInserted"),e(".shopping-cart").on("mouseenter",".cart-contents",(function(){e(window).trigger("scroll")})),e("body").on("click",".navbar-toggle",(function(){var t=e("body");t.hasClass("navbar-on")?t.removeClass("navbar-on navbar-ing"):(t.addClass("navbar-on navbar-ing"),setTimeout((function(){t.removeClass("navbar-ing")}),500)),0==e(".navbar-on-shadow").length&&e("#wrap").append(''),setTimeout((function(){e(window).trigger("scroll")}),500)})).on("click",".m-dropdown",(function(){var t=e(this).parent();t.find("> .dropdown-menu").slideToggle("fast"),t.toggleClass("dropdown-open"),e(window).trigger("scroll")})),e("#wrap").on("click",".navbar-on-shadow",(function(){e("body").hasClass("navbar-ing")||e(".navbar-toggle").trigger("click")})),e(".woocommerce").off("click.quantity").on("click.quantity",".qty-down,.qty-up",(function(){var t=e(this).hasClass("qty-down")?0:1,a=e(this).parent().find(".qty"),i=a.val();i=t?++i:--i,i=a.attr("min")&&ia.attr("max")?a.attr("max"):i,a.val(i).trigger("change")})).off("blur.quantity").on("blur.quantity",".qty",(function(){var t=e(this),a=t.val();a=t.attr("min")&&at.attr("max")?t.attr("max"):a,t.val(a)}));var u=e(".j-top"),h=e(".action");u.length&&(t.scroll((function(){t.scrollTop()>100?(u.addClass("active"),h.removeClass("hide-gotop")):(u.removeClass("active"),h.addClass("hide-gotop"))})),h.on("click",".j-top",(function(){e("html, body").animate({scrollTop:0},"slow")}))),h.length&&setTimeout((function(){h.find(".action-item").each((function(t,a){var i=e(a).find(".action-item-inner");i.length&&i.css("margin-top",-i.outerHeight()/2)}))}),200),h.on("mouseenter",".action-item",(function(){var t=e(this).find(".action-item-inner");t.length&&t.css("margin-top",-t.outerHeight()/2)})),setTimeout((function(){s.init()}),50)})),window.setup_share=function(t){t?e(".action .action-item.j-share").append(''):e(document).on("click",".action-item.j-share",(function(t){t.preventDefault(),e(".at-svc-compact .at-icon-wrapper").trigger("click")}))},function(){if("micromessenger"==a.match(/MicroMessenger/i)){var t,i=location.href.split("#")[0],s=document.querySelector("body").classList,o=0;if(s.contains("page"))for(var l=0;l\n \n \n \n ';e("body").append(s)}e("#wpcom-alert").modal("show")}}(jQuery)},{"./jquery-smartphoto":9,"./jquery.lazyload":10,"./social-share":15}],8:[function(e,t,a){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s={init:function(){var e=this;jQuery(document).on("click",".j-follow",(function(t){e.follow(t)})).on("check_follow wpcom_login",(function(){e.check_follow()}))},follow:function(e){if(!1===window.is_login)return jQuery("#login-modal").modal(),!1;var t=jQuery(e.target).closest(".j-follow");if(t.hasClass("loading"))return!1;var a=t.hasClass("followed"),i=t.data("user");if(i){void 0!==_wpcom_js.framework_url?_wpcom_js.framework_url:_wpcom_js.theme_url;t.loading(1),jQuery.ajax({type:"POST",url:_wpcom_js.ajaxurl,data:{action:"wpcom_follow",follow:i},dataType:"json",success:function(e){0==e.result?t.html(_wpcom_js.followed_btn).addClass("followed").removeClass("btn-primary"):1==e.result?t.html(_wpcom_js.follow_btn).removeClass("followed").addClass("btn-primary"):-1==e.result?(jQuery(document).trigger("wpcom_not_login"),jQuery("#login-modal").modal(),t.html(a?_wpcom_js.followed_btn:_wpcom_js.follow_btn)):(t.html(a?_wpcom_js.followed_btn:_wpcom_js.follow_btn),e.msg&&wpcom_alert(e.msg)),t.loading(0)},error:function(){t.html(a?_wpcom_js.followed_btn:_wpcom_js.follow_btn).loading(0)}})}},check_follow:function(){var e=[];jQuery(".j-follow").each((function(t,a){var i=jQuery(a).data("user");i&&jQuery.inArray(i,e)<0&&e.push(i)})),e.length&&jQuery.ajax({type:"POST",url:_wpcom_js.ajaxurl,data:{action:"wpcom_check_follow",ids:e},dataType:"json",success:function(t){if(t&&"object"===i(t))for(var a in t)t[a]&&jQuery.inArray(a,e)&&jQuery(".j-follow[data-user="+a+"]").addClass("followed").removeClass("btn-primary").html(_wpcom_js.followed_btn)}})}};a.default=s},{}],9:[function(e,t,a){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /** * Modules in this bundle * @license * * smartphoto: * license: MIT (http://opensource.org/licenses/MIT) * author: appleple * homepage: http://developer.a-blogcms.jp * version: 1.3.6 * * a-template: * license: MIT (http://opensource.org/licenses/MIT) * author: steelydylan * version: 0.5.4 * * custom-event-polyfill: * license: MIT (http://opensource.org/licenses/MIT) * contributors: Frank Panetta, Mikhail Reenko , Joscha Feth * homepage: https://github.com/krambuhl/custom-event-polyfill#readme * version: 0.3.0 * * es6-promise-polyfill: * license: MIT (http://opensource.org/licenses/MIT) * author: Roman Dvornov * homepage: https://github.com/lahmatiy/es6-promise-polyfill#readme * version: 1.2.0 * * ie-array-find-polyfill: * license: MIT (http://opensource.org/licenses/MIT) * author: Carlos Abdalla * homepage: https://github.com/abdalla/ie-array-find-polyfill#readme * version: 1.1.0 * * morphdom: * license: MIT (http://opensource.org/licenses/MIT) * author: Patrick Steele-Idem * homepage: https://github.com/patrick-steele-idem/morphdom#readme * version: 2.3.3 * * process: * license: MIT (http://opensource.org/licenses/MIT) * author: Roman Shtylman * homepage: https://github.com/shtylman/node-process#readme * version: 0.11.10 * * timers-browserify: * licenses: MIT (http://opensource.org/licenses/MIT) * author: J. Ryan Stinnett * contributors: Guy Bedford , Ionut-Cristian Florescu , James Halliday , Jan Schär , Johannes Ewald , Jonathan Prins , Matt Esch * homepage: https://github.com/jryans/timers-browserify * version: 1.4.2 * * This header is generated by licensify (https://github.com/twada/licensify) */!function t(a,i,s){function o(n,l){if(!i[n]){if(!a[n]){var d="function"==typeof e&&e;if(!l&&d)return d(n,!0);if(r)return r(n,!0);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}var p=i[n]={exports:{}};a[n][0].call(p.exports,(function(e){return o(a[n][1][e]||e)}),p,p.exports,t,a,i,s)}return i[n].exports}for(var r="function"==typeof e&&e,n=0;n1;)a=a[i.shift()];a[i.shift()]=t}},{key:"removeDataByString",value:function(e){for(var t=this.data,a=e.split(".");a.length>1;)t=t[a.shift()];var i=a.shift();i.match(/^\d+$/)?t.splice(Number(i),1):delete t[i]}},{key:"resolveBlock",value:function(e,t,a){var i=this,s=e.match(//g),o=e.match(//g),r=e.match(//g),n=e.match(//g);if(s)for(var l=0,d=s.length;l/g,(function(e,t){return(0,r.selector)("#"+t).innerHTML}))}},{key:"resolveWith",value:function(e){return e.replace(/(([\n\r\t]|.)*?)/g,(function(e,t){return e.replace(/data\-bind=['"](.*?)['"]/g,"data-bind='"+t+".$1'")}))}},{key:"resolveLoop",value:function(e){var t=this;return e.replace(/(([\n\r\t]|.)*?)/g,(function(e,a,i){var s,o=t.getDataByString(a),r="";if((s="function"==typeof o?o.apply(t):o)instanceof Array)for(var n=0,l=s.length;n(([\n\r\t]|.)*?)/g)}},{key:"getHtml",value:function(e,t){var a=this.atemplate.find((function(t){return t.id===e})),i="";if(a&&a.html&&(i=a.html),t&&(i=e),!i)return"";var s=this.data;for(i=this.resolveInclude(i),i=this.resolveWith(i);this.hasLoop(i);)i=this.resolveLoop(i);return i=(i=this.resolveBlock(i,s)).replace(/\\([^\\])/g,"$1"),(i=this.resolveAbsBlock(i)).replace(/^([\t ])*\n/gm,"")}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"html",a=arguments[1],i=this.templates;this.beforeUpdated&&this.beforeUpdated();for(var s=0,n=i.length;s"+c+"");else(0,r.selector)(d).insertAdjacentHTML("afterend",'
'),"text"===t?(0,r.selector)("[data-id='"+l+"']").innerText=c:(0,r.selector)("[data-id='"+l+"']").innerHTML=c;var m=e.atemplate.find((function(e){return e.id===l}));m.binded||(m.binded=!0,e.addDataBind((0,r.selector)("[data-id='"+l+"']")),e.addActionBind((0,r.selector)("[data-id='"+l+"']")))}(s);return this.updateBindingData(a),this.onUpdated&&this.onUpdated(a),this}},{key:"updateBindingData",value:function(e){for(var t=this,a=this.templates,i=0,s=a.length;i1?a-1:0),s=1;s1;)t=t[a.shift()];var i=a.shift();return i.match(/^\d+$/)?t.splice(Number(i),1):delete t[i],this}}]),e}();a.default=d,t.exports=a.default},{"./util":2,"ie-array-find-polyfill":5,morphdom:6}],2:[function(e,t,a){Object.defineProperty(a,"__esModule",{value:!0});var i=a.matches=function(e,t){for(var a=(e.document||e.ownerDocument).querySelectorAll(t),i=a.length;--i>=0&&a.item(i)!==e;);return i>-1},s=(a.selector=function(e){return document.querySelector(e)},a.findAncestor=function(e,t){if("function"==typeof e.closest)return e.closest(t)||null;for(;e&&e!==document;){if(i(e,t))return e;e=e.parentElement}return null});a.on=function(e,t,a,i){a.split(" ").forEach((function(a){e.addEventListener(a,(function(e){var a=(e.target,s(e.target,t));a&&(e.delegateTarget=a,i(e))}))}))}},{}],3:[function(e,t,a){try{var i=new window.CustomEvent("test");if(i.preventDefault(),!0!==i.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var s=function(e,t){var a,i;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(a=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=a.preventDefault,a.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},a};s.prototype=window.Event.prototype,window.CustomEvent=s}},{}],4:[function(e,t,a){(function(e,t){!function(e){function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(){for(var e=0;e<_.length;e++)_[e][0](_[e][1]);_=[],w=!1}function r(e,t){_.push([e,t]),w||(w=!0,S(o,0))}function n(e){var t=e.owner,a=t.state_,i=t.data_,s=e[a],o=e.then;if("function"==typeof s){a=x;try{i=s(i)}catch(e){p(o,e)}}l(o,i)||(a===x&&d(o,i),a===T&&p(o,i))}function l(e,t){var a;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==i(t))){var s=t.then;if("function"==typeof s)return s.call(t,(function(i){a||(a=!0,t!==i?d(e,i):c(e,i))}),(function(t){a||(a=!0,p(e,t))})),!0}}catch(t){return a||p(e,t),!0}return!1}function d(e,t){e!==t&&l(e,t)||c(e,t)}function c(e,t){e.state_===y&&(e.state_=b,e.data_=t,r(h,e))}function p(e,t){e.state_===y&&(e.state_=b,e.data_=t,r(m,e))}function u(e){var t=e.then_;e.then_=void 0;for(var a=0;a>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],s=0;s90)&&a===i.toUpperCase()}function o(e,t){return t&&t!==c?p.createElementNS(t,e):p.createElement(e)}function r(e,t,a){e[a]!==t[a]&&(e[a]=t[a],e[a]?e.setAttribute(a,""):e.removeAttribute(a,""))}function n(){}function l(e){return e.id}var d,c="http://www.w3.org/1999/xhtml",p="undefined"==typeof document?void 0:document,u=p?p.body||p.createElement("div"):{},h=u.hasAttributeNS?function(e,t,a){return e.hasAttributeNS(t,a)}:u.hasAttribute?function(e,t,a){return e.hasAttribute(a)}:function(e,t,a){return null!=e.getAttributeNode(t,a)},m={OPTION:function(e,t){r(e,t,"selected")},INPUT:function(e,t){r(e,t,"checked"),r(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),h(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var a=t.value;e.value!==a&&(e.value=a);var i=e.firstChild;if(i){var s=i.nodeValue;if(s==a||!a&&s==e.placeholder)return;i.nodeValue=a}},SELECT:function(e,t){if(!h(t,null,"multiple")){for(var a=0,i=t.firstChild;i;){var s=i.nodeName;if(s&&"OPTION"===s.toUpperCase()){if(h(i,null,"selected"))break;a++}i=i.nextSibling}e.selectedIndex=a}}},f=function(e){return function(t,a,r){function d(e){g?g.push(e):g=[e]}function c(e,t,a){!1!==T(e)&&(t&&t.removeChild(e),C(e),function e(t,a){if(1===t.nodeType)for(var i=t.firstChild;i;){var s=void 0;a&&(s=v(i))?d(s):(C(i),i.firstChild&&e(i,a)),i=i.nextSibling}}(e,a))}function u(e){y(e);for(var t=e.firstChild;t;){var a=t.nextSibling,i=v(t);if(i){var o=k[i];o&&s(t,o)&&(t.parentNode.replaceChild(o,t),h(o,t))}u(t),t=a}}function h(i,o,r){var n,l=v(o);if(l&&delete k[l],!a.isSameNode||!a.isSameNode(t)){if(!r){if(!1===b(i,o))return;if(e(i,o),x(i),!1===S(i,o))return}if("TEXTAREA"!==i.nodeName){var f,g,y,T,C=o.firstChild,_=i.firstChild;e:for(;C;){for(y=C.nextSibling,f=v(C);_;){if(g=_.nextSibling,C.isSameNode&&C.isSameNode(_)){C=y,_=g;continue e}n=v(_);var P=_.nodeType,E=void 0;if(P===C.nodeType&&(1===P?(f?f!==n&&((T=k[f])?_.nextSibling===T?E=!1:(i.insertBefore(T,_),g=_.nextSibling,n?d(n):c(_,i,!0),_=T):E=!1):n&&(E=!1),(E=!1!==E&&s(_,C))&&h(_,C)):3!==P&&8!=P||(E=!0,_.nodeValue!==C.nodeValue&&(_.nodeValue=C.nodeValue))),E){C=y,_=g;continue e}n?d(n):c(_,i,!0),_=g}if(f&&(T=k[f])&&s(T,C))i.appendChild(T),h(T,C);else{var I=w(C);!1!==I&&(I&&(C=I),C.actualize&&(C=C.actualize(i.ownerDocument||p)),i.appendChild(C),u(C))}C=y,_=g}for(;_;)g=_.nextSibling,(n=v(_))?d(n):c(_,i,!0),_=g}var j=m[i.nodeName];j&&j(i,o)}}if(r||(r={}),"string"==typeof a)if("#document"===t.nodeName||"HTML"===t.nodeName){var f=a;(a=p.createElement("html")).innerHTML=f}else a=i(a);var g,v=r.getNodeKey||l,w=r.onBeforeNodeAdded||n,y=r.onNodeAdded||n,b=r.onBeforeElUpdated||n,x=r.onElUpdated||n,T=r.onBeforeNodeDiscarded||n,C=r.onNodeDiscarded||n,S=r.onBeforeElChildrenUpdated||n,_=!0===r.childrenOnly,k={};!function e(t){if(1===t.nodeType)for(var a=t.firstChild;a;){var i=v(a);i&&(k[i]=a),e(a),a=a.nextSibling}}(t);var P=t,E=P.nodeType,I=a.nodeType;if(!_)if(1===E)1===I?s(t,a)||(C(t),P=function(e,t){for(var a=e.firstChild;a;){var i=a.nextSibling;t.appendChild(a),a=i}return t}(t,o(a.nodeName,a.namespaceURI))):P=a;else if(3===E||8===E){if(I===E)return P.nodeValue!==a.nodeValue&&(P.nodeValue=a.nodeValue),P;P=a}if(P===a)C(t);else if(h(P,a,_),g)for(var j=0,M=g.length;j=0;--a)s=(i=n[a]).name,o=i.namespaceURI,r=i.value,o?(s=i.localName||s,e.getAttributeNS(o,s)!==r&&e.setAttributeNS(o,s,r)):e.getAttribute(s)!==r&&e.setAttribute(s,r);for(a=(n=e.attributes).length-1;a>=0;--a)!1!==(i=n[a]).specified&&(s=i.name,(o=i.namespaceURI)?(s=i.localName||s,h(t,o,s)||e.removeAttributeNS(o,s)):h(t,null,s)||e.removeAttribute(s))}));t.exports=f},{}],7:[function(e,t,a){function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===i||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function r(){f&&h&&(f=!1,h.length?m=h.concat(m):g=-1,m.length&&n())}function n(){if(!f){var e=o(r);f=!0;for(var t=m.length;t;){for(h=m,m=[];++g1)for(var a=1;a=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a.setImmediate="function"==typeof t?t:function(e){var t=d++,i=!(arguments.length<2)&&n.call(arguments,1);return l[t]=!0,o((function(){l[t]&&(i?e.apply(null,i):e.call(null),a.clearImmediate(t))})),t},a.clearImmediate="function"==typeof i?i:function(e){delete l[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":7,timers:8}],9:[function(e,t,a){var i=e("../index"),s=function(e){e.fn.SmartPhoto=function(e){return"strings"==typeof e||new i(this,e),this}};if("function"==typeof define&&define.amd)define(["jquery"],s);else{var o=window.jQuery?window.jQuery:window.$;void 0!==o&&s(o)}t.exports=s},{"../index":11}],10:[function(e,t,a){function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=i(t)&&"function"!=typeof t?e:t}Object.defineProperty(a,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a