Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/plugins/advanced-custom-fields/assets/build/js/acf.js.map
Назад
{"version":3,"file":"acf.js","mappings":";;;;;;;;;AAAA,CAAE,UAAWA,MAAM,EAAEC,SAAS,EAAG;EAChC,YAAY;;EAEZ;AACD;AACA;AACA;EACC,IAAIC,YAAY,GAAG,SAAAA,CAAA,EAAY;IAC9B;AACF;AACA;IACE,IAAIC,gBAAgB,GAAG;MACtBC,YAAY,EAAEA,YAAY;MAC1BC,YAAY,EAAEA,YAAY;MAC1BC,SAAS,EAAEA,SAAS;MACpBC,YAAY,EAAEA,YAAY;MAC1BC,QAAQ,EAAEA,QAAQ;MAClBC,SAAS,EAAEA,SAAS;MACpBC,OAAO,EAAEC;IACV,CAAC;;IAED;AACF;AACA;AACA;IACE,IAAIC,OAAO,GAAG;MACbC,OAAO,EAAE,CAAC,CAAC;MACXC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,SAASH,UAAUA,CAAA,EAAG;MACrB,OAAOC,OAAO;IACf;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACE,SAASH,SAASA,CAAEM,MAAM,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,EAAG;MACzD,IACC,OAAOH,MAAM,KAAK,QAAQ,IAC1B,OAAOC,QAAQ,KAAK,UAAU,EAC7B;QACDC,QAAQ,GAAGE,QAAQ,CAAEF,QAAQ,IAAI,EAAE,EAAE,EAAG,CAAC;QACzCG,QAAQ,CAAE,SAAS,EAAEL,MAAM,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,OAAQ,CAAC;MAC3D;MAEA,OAAOf,gBAAgB;IACxB;;IAEA;AACF;AACA;AACA;IACE,SAASK,QAAQA,CAAA,CAAC;IAAA,EAA+B;MAChD,IAAIa,IAAI,GAAGC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAAEC,SAAU,CAAC;MAClD,IAAIX,MAAM,GAAGM,IAAI,CAACM,KAA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,CAAC;EACpD,CAAE,CAAC;AACJ,CAAC,EAAIrkB,MAAO,CAAC;;;;;;UCthFb;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNmB;AACM;AACA;AACA;AACA;AACA;AACC","sources":["webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-hooks.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-modal.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-model.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-notice.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-panel.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-popup.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf-tooltip.js","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/_acf.js","webpack://advanced-custom-fields-pro/webpack/bootstrap","webpack://advanced-custom-fields-pro/webpack/runtime/compat get default export","webpack://advanced-custom-fields-pro/webpack/runtime/define property getters","webpack://advanced-custom-fields-pro/webpack/runtime/hasOwnProperty shorthand","webpack://advanced-custom-fields-pro/webpack/runtime/make namespace object","webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/acf.js"],"sourcesContent":["( function ( window, undefined ) {\n\t'use strict';\n\n\t/**\n\t * Handles managing all events for whatever you plug it into. Priorities for hooks are based on lowest to highest in\n\t * that, lowest priority hooks are fired first.\n\t */\n\tvar EventManager = function () {\n\t\t/**\n\t\t * Maintain a reference to the object scope so our public methods never get confusing.\n\t\t */\n\t\tvar MethodsAvailable = {\n\t\t\tremoveFilter: removeFilter,\n\t\t\tapplyFilters: applyFilters,\n\t\t\taddFilter: addFilter,\n\t\t\tremoveAction: removeAction,\n\t\t\tdoAction: doAction,\n\t\t\taddAction: addAction,\n\t\t\tstorage: getStorage,\n\t\t};\n\n\t\t/**\n\t\t * Contains the hooks that get registered with this EventManager. The array for storage utilizes a \"flat\"\n\t\t * object literal such that looking up the hook utilizes the native object literal hash.\n\t\t */\n\t\tvar STORAGE = {\n\t\t\tactions: {},\n\t\t\tfilters: {},\n\t\t};\n\n\t\tfunction getStorage() {\n\t\t\treturn STORAGE;\n\t\t}\n\n\t\t/**\n\t\t * Adds an action to the event manager.\n\t\t *\n\t\t * @param action Must contain namespace.identifier\n\t\t * @param callback Must be a valid callback function before this action is added\n\t\t * @param [priority=10] Used to control when the function is executed in relation to other callbacks bound to the same hook\n\t\t * @param [context] Supply a value to be used for this\n\t\t */\n\t\tfunction addAction( action, callback, priority, context ) {\n\t\t\tif (\n\t\t\t\ttypeof action === 'string' &&\n\t\t\t\ttypeof callback === 'function'\n\t\t\t) {\n\t\t\t\tpriority = parseInt( priority || 10, 10 );\n\t\t\t\t_addHook( 'actions', action, callback, priority, context );\n\t\t\t}\n\n\t\t\treturn MethodsAvailable;\n\t\t}\n\n\t\t/**\n\t\t * Performs an action if it exists. You can pass as many arguments as you want to this function; the only rule is\n\t\t * that the first argument must always be the action.\n\t\t */\n\t\tfunction doAction(/* action, arg1, arg2, ... */) {\n\t\t\tvar args = Array.prototype.slice.call( arguments );\n\t\t\tvar action = args.shift();\n\n\t\t\tif ( typeof action === 'string' ) {\n\t\t\t\t_runHook( 'actions', action, args );\n\t\t\t}\n\n\t\t\treturn MethodsAvailable;\n\t\t}\n\n\t\t/**\n\t\t * Removes the specified action if it contains a namespace.identifier & exists.\n\t\t *\n\t\t * @param action The action to remove\n\t\t * @param [callback] Callback function to remove\n\t\t */\n\t\tfunction removeAction( action, callback ) {\n\t\t\tif ( typeof action === 'string' ) {\n\t\t\t\t_removeHook( 'actions', action, callback );\n\t\t\t}\n\n\t\t\treturn MethodsAvailable;\n\t\t}\n\n\t\t/**\n\t\t * Adds a filter to the event manager.\n\t\t *\n\t\t * @param filter Must contain namespace.identifier\n\t\t * @param callback Must be a valid callback function before this action is added\n\t\t * @param [priority=10] Used to control when the function is executed in relation to other callbacks bound to the same hook\n\t\t * @param [context] Supply a value to be used for this\n\t\t */\n\t\tfunction addFilter( filter, callback, priority, context ) {\n\t\t\tif (\n\t\t\t\ttypeof filter === 'string' &&\n\t\t\t\ttypeof callback === 'function'\n\t\t\t) {\n\t\t\t\tpriority = parseInt( priority || 10, 10 );\n\t\t\t\t_addHook( 'filters', filter, callback, priority, context );\n\t\t\t}\n\n\t\t\treturn MethodsAvailable;\n\t\t}\n\n\t\t/**\n\t\t * Performs a filter if it exists. You should only ever pass 1 argument to be filtered. The only rule is that\n\t\t * the first argument must always be the filter.\n\t\t */\n\t\tfunction applyFilters(/* filter, filtered arg, arg2, ... */) {\n\t\t\tvar args = Array.prototype.slice.call( arguments );\n\t\t\tvar filter = args.shift();\n\n\t\t\tif ( typeof filter === 'string' ) {\n\t\t\t\treturn _runHook( 'filters', filter, args );\n\t\t\t}\n\n\t\t\treturn MethodsAvailable;\n\t\t}\n\n\t\t/**\n\t\t * Removes the specified filter if it contains a namespace.identifier & exists.\n\t\t *\n\t\t * @param filter The action to remove\n\t\t * @param [callback] Callback function to remove\n\t\t */\n\t\tfunction removeFilter( filter, callback ) {\n\t\t\tif ( typeof filter === 'string' ) {\n\t\t\t\t_removeHook( 'filters', filter, callback );\n\t\t\t}\n\n\t\t\treturn MethodsAvailable;\n\t\t}\n\n\t\t/**\n\t\t * Removes the specified hook by resetting the value of it.\n\t\t *\n\t\t * @param type Type of hook, either 'actions' or 'filters'\n\t\t * @param hook The hook (namespace.identifier) to remove\n\t\t * @private\n\t\t */\n\t\tfunction _removeHook( type, hook, callback, context ) {\n\t\t\tif ( ! STORAGE[ type ][ hook ] ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ( ! callback ) {\n\t\t\t\tSTORAGE[ type ][ hook ] = [];\n\t\t\t} else {\n\t\t\t\tvar handlers = STORAGE[ type ][ hook ];\n\t\t\t\tvar i;\n\t\t\t\tif ( ! context ) {\n\t\t\t\t\tfor ( i = handlers.length; i--; ) {\n\t\t\t\t\t\tif ( handlers[ i ].callback === callback ) {\n\t\t\t\t\t\t\thandlers.splice( i, 1 );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor ( i = handlers.length; i--; ) {\n\t\t\t\t\t\tvar handler = handlers[ i ];\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\thandler.callback === callback &&\n\t\t\t\t\t\t\thandler.context === context\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\thandlers.splice( i, 1 );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Adds the hook to the appropriate storage container\n\t\t *\n\t\t * @param type 'actions' or 'filters'\n\t\t * @param hook The hook (namespace.identifier) to add to our event manager\n\t\t * @param callback The function that will be called when the hook is executed.\n\t\t * @param priority The priority of this hook. Must be an integer.\n\t\t * @param [context] A value to be used for this\n\t\t * @private\n\t\t */\n\t\tfunction _addHook( type, hook, callback, priority, context ) {\n\t\t\tvar hookObject = {\n\t\t\t\tcallback: callback,\n\t\t\t\tpriority: priority,\n\t\t\t\tcontext: context,\n\t\t\t};\n\n\t\t\t// Utilize 'prop itself' : http://jsperf.com/hasownproperty-vs-in-vs-undefined/19\n\t\t\tvar hooks = STORAGE[ type ][ hook ];\n\t\t\tif ( hooks ) {\n\t\t\t\thooks.push( hookObject );\n\t\t\t\thooks = _hookInsertSort( hooks );\n\t\t\t} else {\n\t\t\t\thooks = [ hookObject ];\n\t\t\t}\n\n\t\t\tSTORAGE[ type ][ hook ] = hooks;\n\t\t}\n\n\t\t/**\n\t\t * Use an insert sort for keeping our hooks organized based on priority. This function is ridiculously faster\n\t\t * than bubble sort, etc: http://jsperf.com/javascript-sort\n\t\t *\n\t\t * @param hooks The custom array containing all of the appropriate hooks to perform an insert sort on.\n\t\t * @private\n\t\t */\n\t\tfunction _hookInsertSort( hooks ) {\n\t\t\tvar tmpHook, j, prevHook;\n\t\t\tfor ( var i = 1, len = hooks.length; i < len; i++ ) {\n\t\t\t\ttmpHook = hooks[ i ];\n\t\t\t\tj = i;\n\t\t\t\twhile (\n\t\t\t\t\t( prevHook = hooks[ j - 1 ] ) &&\n\t\t\t\t\tprevHook.priority > tmpHook.priority\n\t\t\t\t) {\n\t\t\t\t\thooks[ j ] = hooks[ j - 1 ];\n\t\t\t\t\t--j;\n\t\t\t\t}\n\t\t\t\thooks[ j ] = tmpHook;\n\t\t\t}\n\n\t\t\treturn hooks;\n\t\t}\n\n\t\t/**\n\t\t * Runs the specified hook. If it is an action, the value is not modified but if it is a filter, it is.\n\t\t *\n\t\t * @param type 'actions' or 'filters'\n\t\t * @param hook The hook ( namespace.identifier ) to be ran.\n\t\t * @param args Arguments to pass to the action/filter. If it's a filter, args is actually a single parameter.\n\t\t * @private\n\t\t */\n\t\tfunction _runHook( type, hook, args ) {\n\t\t\tvar handlers = STORAGE[ type ][ hook ];\n\n\t\t\tif ( ! handlers ) {\n\t\t\t\treturn type === 'filters' ? args[ 0 ] : false;\n\t\t\t}\n\n\t\t\tvar i = 0,\n\t\t\t\tlen = handlers.length;\n\t\t\tif ( type === 'filters' ) {\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\targs[ 0 ] = handlers[ i ].callback.apply(\n\t\t\t\t\t\thandlers[ i ].context,\n\t\t\t\t\t\targs\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\thandlers[ i ].callback.apply( handlers[ i ].context, args );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn type === 'filters' ? args[ 0 ] : true;\n\t\t}\n\n\t\t// return all of the publicly available methods\n\t\treturn MethodsAvailable;\n\t};\n\n\t// instantiate\n\tacf.hooks = new EventManager();\n} )( window );\n","( function ( $, undefined ) {\n\tacf.models.Modal = acf.Model.extend( {\n\t\tdata: {\n\t\t\ttitle: '',\n\t\t\tcontent: '',\n\t\t\ttoolbar: '',\n\t\t},\n\t\tevents: {\n\t\t\t'click .acf-modal-close': 'onClickClose',\n\t\t},\n\t\tsetup: function ( props ) {\n\t\t\t$.extend( this.data, props );\n\t\t\tthis.$el = $();\n\t\t\tthis.render();\n\t\t},\n\t\tinitialize: function () {\n\t\t\tthis.open();\n\t\t},\n\t\trender: function () {\n\t\t\t// Extract vars.\n\t\t\tvar title = this.get( 'title' );\n\t\t\tvar content = this.get( 'content' );\n\t\t\tvar toolbar = this.get( 'toolbar' );\n\n\t\t\t// Create element.\n\t\t\tvar $el = $(\n\t\t\t\t[\n\t\t\t\t\t'<div>',\n\t\t\t\t\t'<div class=\"acf-modal\">',\n\t\t\t\t\t'<div class=\"acf-modal-title\">',\n\t\t\t\t\t'<h2>' + title + '</h2>',\n\t\t\t\t\t'<button class=\"acf-modal-close\" type=\"button\"><span class=\"dashicons dashicons-no\"></span></button>',\n\t\t\t\t\t'</div>',\n\t\t\t\t\t'<div class=\"acf-modal-content\">' + content + '</div>',\n\t\t\t\t\t'<div class=\"acf-modal-toolbar\">' + toolbar + '</div>',\n\t\t\t\t\t'</div>',\n\t\t\t\t\t'<div class=\"acf-modal-backdrop acf-modal-close\"></div>',\n\t\t\t\t\t'</div>',\n\t\t\t\t].join( '' )\n\t\t\t);\n\n\t\t\t// Update DOM.\n\t\t\tif ( this.$el ) {\n\t\t\t\tthis.$el.replaceWith( $el );\n\t\t\t}\n\t\t\tthis.$el = $el;\n\n\t\t\t// Trigger action.\n\t\t\tacf.doAction( 'append', $el );\n\t\t},\n\t\tupdate: function ( props ) {\n\t\t\tthis.data = acf.parseArgs( props, this.data );\n\t\t\tthis.render();\n\t\t},\n\t\ttitle: function ( title ) {\n\t\t\tthis.$( '.acf-modal-title h2' ).html( title );\n\t\t},\n\t\tcontent: function ( content ) {\n\t\t\tthis.$( '.acf-modal-content' ).html( content );\n\t\t},\n\t\ttoolbar: function ( toolbar ) {\n\t\t\tthis.$( '.acf-modal-toolbar' ).html( toolbar );\n\t\t},\n\t\topen: function () {\n\t\t\t$( 'body' ).append( this.$el );\n\t\t},\n\t\tclose: function () {\n\t\t\tthis.remove();\n\t\t},\n\t\tonClickClose: function ( e, $el ) {\n\t\t\te.preventDefault();\n\t\t\tthis.close();\n\t\t},\n\n\t\t/**\n\t\t * Places focus within the popup.\n\t\t */\n\t\tfocus: function() {\n\t\t\tthis.$el.find( '.acf-icon' ).first().trigger( 'focus' );\n\t\t},\n\n\t\t/**\n\t\t * Locks focus within the modal.\n\t\t *\n\t\t * @param {boolean} locked True to lock focus, false to unlock.\n\t\t */\n\t\tlockFocusToModal: function( locked ) {\n\t\t\tlet inertElement = $( '#wpwrap' );\n\n\t\t\tif ( ! inertElement.length ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tinertElement[ 0 ].inert = locked;\n\t\t\tinertElement.attr( 'aria-hidden', locked );\n\t\t},\n\n\t\t/**\n\t\t * Returns focus to the element that opened the popup\n\t\t * if it still exists in the DOM.\n\t\t */\n\t\treturnFocusToOrigin: function() {\n\t\t\tif (\n\t\t\t\tthis.data.openedBy instanceof $\n\t\t\t\t&& this.data.openedBy.closest( 'body' ).length > 0\n\t\t\t) {\n\t\t\t\tthis.data.openedBy.trigger( 'focus' );\n\t\t\t}\n\t\t}\n\t} );\n\n\t/**\n\t * Returns a new modal.\n\t *\n\t * @date\t21/4/20\n\t * @since\t5.9.0\n\t *\n\t * @param\tobject props The modal props.\n\t * @return\tobject\n\t */\n\tacf.newModal = function ( props ) {\n\t\treturn new acf.models.Modal( props );\n\t};\n} )( jQuery );\n","( function ( $, undefined ) {\n\t// Cached regex to split keys for `addEvent`.\n\tvar delegateEventSplitter = /^(\\S+)\\s*(.*)$/;\n\n\t/**\n\t * extend\n\t *\n\t * Helper function to correctly set up the prototype chain for subclasses\n\t * Heavily inspired by backbone.js\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tobject protoProps New properties for this object.\n\t * @return\tfunction.\n\t */\n\n\tvar extend = function ( protoProps ) {\n\t\t// vars\n\t\tvar Parent = this;\n\t\tvar Child;\n\n\t\t// The constructor function for the new subclass is either defined by you\n\t\t// (the \"constructor\" property in your `extend` definition), or defaulted\n\t\t// by us to simply call the parent constructor.\n\t\tif ( protoProps && protoProps.hasOwnProperty( 'constructor' ) ) {\n\t\t\tChild = protoProps.constructor;\n\t\t} else {\n\t\t\tChild = function () {\n\t\t\t\treturn Parent.apply( this, arguments );\n\t\t\t};\n\t\t}\n\n\t\t// Add static properties to the constructor function, if supplied.\n\t\t$.extend( Child, Parent );\n\n\t\t// Set the prototype chain to inherit from `parent`, without calling\n\t\t// `parent`'s constructor function and add the prototype properties.\n\t\tChild.prototype = Object.create( Parent.prototype );\n\t\t$.extend( Child.prototype, protoProps );\n\t\tChild.prototype.constructor = Child;\n\n\t\t// Set a convenience property in case the parent's prototype is needed later.\n\t\t//Child.prototype.__parent__ = Parent.prototype;\n\n\t\t// return\n\t\treturn Child;\n\t};\n\n\t/**\n\t * Model\n\t *\n\t * Base class for all inheritence\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tobject props\n\t * @return\tfunction.\n\t */\n\n\tvar Model = ( acf.Model = function () {\n\t\t// generate uique client id\n\t\tthis.cid = acf.uniqueId( 'acf' );\n\n\t\t// set vars to avoid modifying prototype\n\t\tthis.data = $.extend( true, {}, this.data );\n\n\t\t// pass props to setup function\n\t\tthis.setup.apply( this, arguments );\n\n\t\t// store on element (allow this.setup to create this.$el)\n\t\tif ( this.$el && ! this.$el.data( 'acf' ) ) {\n\t\t\tthis.$el.data( 'acf', this );\n\t\t}\n\n\t\t// initialize\n\t\tvar initialize = function () {\n\t\t\tthis.initialize();\n\t\t\tthis.addEvents();\n\t\t\tthis.addActions();\n\t\t\tthis.addFilters();\n\t\t};\n\n\t\t// initialize on action\n\t\tif ( this.wait && ! acf.didAction( this.wait ) ) {\n\t\t\tthis.addAction( this.wait, initialize );\n\n\t\t\t// initialize now\n\t\t} else {\n\t\t\tinitialize.apply( this );\n\t\t}\n\t} );\n\n\t// Attach all inheritable methods to the Model prototype.\n\t$.extend( Model.prototype, {\n\t\t// Unique model id\n\t\tid: '',\n\n\t\t// Unique client id\n\t\tcid: '',\n\n\t\t// jQuery element\n\t\t$el: null,\n\n\t\t// Data specific to this instance\n\t\tdata: {},\n\n\t\t// toggle used when changing data\n\t\tbusy: false,\n\t\tchanged: false,\n\n\t\t// Setup events hooks\n\t\tevents: {},\n\t\tactions: {},\n\t\tfilters: {},\n\n\t\t// class used to avoid nested event triggers\n\t\teventScope: '',\n\n\t\t// action to wait until initialize\n\t\twait: false,\n\n\t\t// action priority default\n\t\tpriority: 10,\n\n\t\t/**\n\t\t * get\n\t\t *\n\t\t * Gets a specific data value\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @return\tmixed\n\t\t */\n\n\t\tget: function ( name ) {\n\t\t\treturn this.data[ name ];\n\t\t},\n\n\t\t/**\n\t\t * has\n\t\t *\n\t\t * Returns `true` if the data exists and is not null\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @return\tboolean\n\t\t */\n\n\t\thas: function ( name ) {\n\t\t\treturn this.get( name ) != null;\n\t\t},\n\n\t\t/**\n\t\t * set\n\t\t *\n\t\t * Sets a specific data value\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tmixed value\n\t\t * @return\tthis\n\t\t */\n\n\t\tset: function ( name, value, silent ) {\n\t\t\t// bail if unchanged\n\t\t\tvar prevValue = this.get( name );\n\t\t\tif ( prevValue == value ) {\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\t// set data\n\t\t\tthis.data[ name ] = value;\n\n\t\t\t// trigger events\n\t\t\tif ( ! silent ) {\n\t\t\t\tthis.changed = true;\n\t\t\t\tthis.trigger( 'changed:' + name, [ value, prevValue ] );\n\t\t\t\tthis.trigger( 'changed', [ name, value, prevValue ] );\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn this;\n\t\t},\n\n\t\t/**\n\t\t * inherit\n\t\t *\n\t\t * Inherits the data from a jQuery element\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tjQuery $el\n\t\t * @return\tthis\n\t\t */\n\n\t\tinherit: function ( data ) {\n\t\t\t// allow jQuery\n\t\t\tif ( data instanceof jQuery ) {\n\t\t\t\tdata = data.data();\n\t\t\t}\n\n\t\t\t// extend\n\t\t\t$.extend( this.data, data );\n\n\t\t\t// return\n\t\t\treturn this;\n\t\t},\n\n\t\t/**\n\t\t * prop\n\t\t *\n\t\t * mimics the jQuery prop function\n\t\t *\n\t\t * @date\t4/6/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\tprop: function () {\n\t\t\treturn this.$el.prop.apply( this.$el, arguments );\n\t\t},\n\n\t\t/**\n\t\t * setup\n\t\t *\n\t\t * Run during constructor function\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tn/a\n\t\t * @return\tn/a\n\t\t */\n\n\t\tsetup: function ( props ) {\n\t\t\t$.extend( this, props );\n\t\t},\n\n\t\t/**\n\t\t * initialize\n\t\t *\n\t\t * Also run during constructor function\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tn/a\n\t\t * @return\tn/a\n\t\t */\n\n\t\tinitialize: function () {},\n\n\t\t/**\n\t\t * addElements\n\t\t *\n\t\t * Adds multiple jQuery elements to this object\n\t\t *\n\t\t * @date\t9/5/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\taddElements: function ( elements ) {\n\t\t\telements = elements || this.elements || null;\n\t\t\tif ( ! elements || ! Object.keys( elements ).length ) return false;\n\t\t\tfor ( var i in elements ) {\n\t\t\t\tthis.addElement( i, elements[ i ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * addElement\n\t\t *\n\t\t * description\n\t\t *\n\t\t * @date\t9/5/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\taddElement: function ( name, selector ) {\n\t\t\tthis[ '$' + name ] = this.$( selector );\n\t\t},\n\n\t\t/**\n\t\t * addEvents\n\t\t *\n\t\t * Adds multiple event handlers\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tobject events {event1 : callback, event2 : callback, etc }\n\t\t * @return\tn/a\n\t\t */\n\n\t\taddEvents: function ( events ) {\n\t\t\tevents = events || this.events || null;\n\t\t\tif ( ! events ) return false;\n\t\t\tfor ( var key in events ) {\n\t\t\t\tvar match = key.match( delegateEventSplitter );\n\t\t\t\tthis.on( match[ 1 ], match[ 2 ], events[ key ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * removeEvents\n\t\t *\n\t\t * Removes multiple event handlers\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tobject events {event1 : callback, event2 : callback, etc }\n\t\t * @return\tn/a\n\t\t */\n\n\t\tremoveEvents: function ( events ) {\n\t\t\tevents = events || this.events || null;\n\t\t\tif ( ! events ) return false;\n\t\t\tfor ( var key in events ) {\n\t\t\t\tvar match = key.match( delegateEventSplitter );\n\t\t\t\tthis.off( match[ 1 ], match[ 2 ], events[ key ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * getEventTarget\n\t\t *\n\t\t * Returns a jQuery element to trigger an event on.\n\t\t *\n\t\t * @date\t5/6/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\tjQuery $el\t\tThe default jQuery element. Optional.\n\t\t * @param\tstring event\tThe event name. Optional.\n\t\t * @return\tjQuery\n\t\t */\n\n\t\tgetEventTarget: function ( $el, event ) {\n\t\t\treturn $el || this.$el || $( document );\n\t\t},\n\n\t\t/**\n\t\t * validateEvent\n\t\t *\n\t\t * Returns true if the event target's closest $el is the same as this.$el\n\t\t * Requires both this.el and this.$el to be defined\n\t\t *\n\t\t * @date\t5/6/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\tvalidateEvent: function ( e ) {\n\t\t\tif ( this.eventScope ) {\n\t\t\t\treturn $( e.target ).closest( this.eventScope ).is( this.$el );\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * proxyEvent\n\t\t *\n\t\t * Returns a new event callback function scoped to this model\n\t\t *\n\t\t * @date\t29/3/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\tfunction callback\n\t\t * @return\tfunction\n\t\t */\n\n\t\tproxyEvent: function ( callback ) {\n\t\t\treturn this.proxy( function ( e ) {\n\t\t\t\t// validate\n\t\t\t\tif ( ! this.validateEvent( e ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// construct args\n\t\t\t\tvar args = acf.arrayArgs( arguments );\n\t\t\t\tvar extraArgs = args.slice( 1 );\n\t\t\t\tvar eventArgs = [ e, $( e.currentTarget ) ].concat( extraArgs );\n\n\t\t\t\t// callback\n\t\t\t\tcallback.apply( this, eventArgs );\n\t\t\t} );\n\t\t},\n\n\t\t/**\n\t\t * on\n\t\t *\n\t\t * Adds an event handler similar to jQuery\n\t\t * Uses the instance 'cid' to namespace event\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\ton: function ( a1, a2, a3, a4 ) {\n\t\t\t// vars\n\t\t\tvar $el, event, selector, callback, args;\n\n\t\t\t// find args\n\t\t\tif ( a1 instanceof jQuery ) {\n\t\t\t\t// 1. args( $el, event, selector, callback )\n\t\t\t\tif ( a4 ) {\n\t\t\t\t\t$el = a1;\n\t\t\t\t\tevent = a2;\n\t\t\t\t\tselector = a3;\n\t\t\t\t\tcallback = a4;\n\n\t\t\t\t\t// 2. args( $el, event, callback )\n\t\t\t\t} else {\n\t\t\t\t\t$el = a1;\n\t\t\t\t\tevent = a2;\n\t\t\t\t\tcallback = a3;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// 3. args( event, selector, callback )\n\t\t\t\tif ( a3 ) {\n\t\t\t\t\tevent = a1;\n\t\t\t\t\tselector = a2;\n\t\t\t\t\tcallback = a3;\n\n\t\t\t\t\t// 4. args( event, callback )\n\t\t\t\t} else {\n\t\t\t\t\tevent = a1;\n\t\t\t\t\tcallback = a2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// element\n\t\t\t$el = this.getEventTarget( $el );\n\n\t\t\t// modify callback\n\t\t\tif ( typeof callback === 'string' ) {\n\t\t\t\tcallback = this.proxyEvent( this[ callback ] );\n\t\t\t}\n\n\t\t\t// modify event\n\t\t\tevent = event + '.' + this.cid;\n\n\t\t\t// args\n\t\t\tif ( selector ) {\n\t\t\t\targs = [ event, selector, callback ];\n\t\t\t} else {\n\t\t\t\targs = [ event, callback ];\n\t\t\t}\n\n\t\t\t// on()\n\t\t\t$el.on.apply( $el, args );\n\t\t},\n\n\t\t/**\n\t\t * off\n\t\t *\n\t\t * Removes an event handler similar to jQuery\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\toff: function ( a1, a2, a3 ) {\n\t\t\t// vars\n\t\t\tvar $el, event, selector, args;\n\n\t\t\t// find args\n\t\t\tif ( a1 instanceof jQuery ) {\n\t\t\t\t// 1. args( $el, event, selector )\n\t\t\t\tif ( a3 ) {\n\t\t\t\t\t$el = a1;\n\t\t\t\t\tevent = a2;\n\t\t\t\t\tselector = a3;\n\n\t\t\t\t\t// 2. args( $el, event )\n\t\t\t\t} else {\n\t\t\t\t\t$el = a1;\n\t\t\t\t\tevent = a2;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// 3. args( event, selector )\n\t\t\t\tif ( a2 ) {\n\t\t\t\t\tevent = a1;\n\t\t\t\t\tselector = a2;\n\n\t\t\t\t\t// 4. args( event )\n\t\t\t\t} else {\n\t\t\t\t\tevent = a1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// element\n\t\t\t$el = this.getEventTarget( $el );\n\n\t\t\t// modify event\n\t\t\tevent = event + '.' + this.cid;\n\n\t\t\t// args\n\t\t\tif ( selector ) {\n\t\t\t\targs = [ event, selector ];\n\t\t\t} else {\n\t\t\t\targs = [ event ];\n\t\t\t}\n\n\t\t\t// off()\n\t\t\t$el.off.apply( $el, args );\n\t\t},\n\n\t\t/**\n\t\t * trigger\n\t\t *\n\t\t * Triggers an event similar to jQuery\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\ttrigger: function ( name, args, bubbles ) {\n\t\t\tvar $el = this.getEventTarget();\n\t\t\tif ( bubbles ) {\n\t\t\t\t$el.trigger.apply( $el, arguments );\n\t\t\t} else {\n\t\t\t\t$el.triggerHandler.apply( $el, arguments );\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\t/**\n\t\t * addActions\n\t\t *\n\t\t * Adds multiple action handlers\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tobject actions {action1 : callback, action2 : callback, etc }\n\t\t * @return\tn/a\n\t\t */\n\n\t\taddActions: function ( actions ) {\n\t\t\tactions = actions || this.actions || null;\n\t\t\tif ( ! actions ) return false;\n\t\t\tfor ( var i in actions ) {\n\t\t\t\tthis.addAction( i, actions[ i ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * removeActions\n\t\t *\n\t\t * Removes multiple action handlers\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tobject actions {action1 : callback, action2 : callback, etc }\n\t\t * @return\tn/a\n\t\t */\n\n\t\tremoveActions: function ( actions ) {\n\t\t\tactions = actions || this.actions || null;\n\t\t\tif ( ! actions ) return false;\n\t\t\tfor ( var i in actions ) {\n\t\t\t\tthis.removeAction( i, actions[ i ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * addAction\n\t\t *\n\t\t * Adds an action using the wp.hooks library\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\taddAction: function ( name, callback, priority ) {\n\t\t\t//console.log('addAction', name, priority);\n\t\t\t// defaults\n\t\t\tpriority = priority || this.priority;\n\n\t\t\t// modify callback\n\t\t\tif ( typeof callback === 'string' ) {\n\t\t\t\tcallback = this[ callback ];\n\t\t\t}\n\n\t\t\t// add\n\t\t\tacf.addAction( name, callback, priority, this );\n\t\t},\n\n\t\t/**\n\t\t * removeAction\n\t\t *\n\t\t * Remove an action using the wp.hooks library\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\tremoveAction: function ( name, callback ) {\n\t\t\tacf.removeAction( name, this[ callback ] );\n\t\t},\n\n\t\t/**\n\t\t * addFilters\n\t\t *\n\t\t * Adds multiple filter handlers\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tobject filters {filter1 : callback, filter2 : callback, etc }\n\t\t * @return\tn/a\n\t\t */\n\n\t\taddFilters: function ( filters ) {\n\t\t\tfilters = filters || this.filters || null;\n\t\t\tif ( ! filters ) return false;\n\t\t\tfor ( var i in filters ) {\n\t\t\t\tthis.addFilter( i, filters[ i ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * addFilter\n\t\t *\n\t\t * Adds a filter using the wp.hooks library\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\taddFilter: function ( name, callback, priority ) {\n\t\t\t// defaults\n\t\t\tpriority = priority || this.priority;\n\n\t\t\t// modify callback\n\t\t\tif ( typeof callback === 'string' ) {\n\t\t\t\tcallback = this[ callback ];\n\t\t\t}\n\n\t\t\t// add\n\t\t\tacf.addFilter( name, callback, priority, this );\n\t\t},\n\n\t\t/**\n\t\t * removeFilters\n\t\t *\n\t\t * Removes multiple filter handlers\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tobject filters {filter1 : callback, filter2 : callback, etc }\n\t\t * @return\tn/a\n\t\t */\n\n\t\tremoveFilters: function ( filters ) {\n\t\t\tfilters = filters || this.filters || null;\n\t\t\tif ( ! filters ) return false;\n\t\t\tfor ( var i in filters ) {\n\t\t\t\tthis.removeFilter( i, filters[ i ] );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * removeFilter\n\t\t *\n\t\t * Remove a filter using the wp.hooks library\n\t\t *\n\t\t * @date\t14/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\tstring name\n\t\t * @param\tstring callback\n\t\t * @return\tn/a\n\t\t */\n\n\t\tremoveFilter: function ( name, callback ) {\n\t\t\tacf.removeFilter( name, this[ callback ] );\n\t\t},\n\n\t\t/**\n\t\t * $\n\t\t *\n\t\t * description\n\t\t *\n\t\t * @date\t16/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\t$: function ( selector ) {\n\t\t\treturn this.$el.find( selector );\n\t\t},\n\n\t\t/**\n\t\t * remove\n\t\t *\n\t\t * Removes the element and listenters\n\t\t *\n\t\t * @date\t19/12/17\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\tremove: function () {\n\t\t\tthis.removeEvents();\n\t\t\tthis.removeActions();\n\t\t\tthis.removeFilters();\n\t\t\tthis.$el.remove();\n\t\t},\n\n\t\t/**\n\t\t * setTimeout\n\t\t *\n\t\t * description\n\t\t *\n\t\t * @date\t16/1/18\n\t\t * @since\t5.6.5\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\tsetTimeout: function ( callback, milliseconds ) {\n\t\t\treturn setTimeout( this.proxy( callback ), milliseconds );\n\t\t},\n\n\t\t/**\n\t\t * time\n\t\t *\n\t\t * used for debugging\n\t\t *\n\t\t * @date\t7/3/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\ttime: function () {\n\t\t\tconsole.time( this.id || this.cid );\n\t\t},\n\n\t\t/**\n\t\t * timeEnd\n\t\t *\n\t\t * used for debugging\n\t\t *\n\t\t * @date\t7/3/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\ttimeEnd: function () {\n\t\t\tconsole.timeEnd( this.id || this.cid );\n\t\t},\n\n\t\t/**\n\t\t * show\n\t\t *\n\t\t * description\n\t\t *\n\t\t * @date\t15/3/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\tshow: function () {\n\t\t\tacf.show( this.$el );\n\t\t},\n\n\t\t/**\n\t\t * hide\n\t\t *\n\t\t * description\n\t\t *\n\t\t * @date\t15/3/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\ttype $var Description. Default.\n\t\t * @return\ttype Description.\n\t\t */\n\n\t\thide: function () {\n\t\t\tacf.hide( this.$el );\n\t\t},\n\n\t\t/**\n\t\t * proxy\n\t\t *\n\t\t * Returns a new function scoped to this model\n\t\t *\n\t\t * @date\t29/3/18\n\t\t * @since\t5.6.9\n\t\t *\n\t\t * @param\tfunction callback\n\t\t * @return\tfunction\n\t\t */\n\n\t\tproxy: function ( callback ) {\n\t\t\treturn $.proxy( callback, this );\n\t\t},\n\t} );\n\n\t// Set up inheritance for the model\n\tModel.extend = extend;\n\n\t// Global model storage\n\tacf.models = {};\n\n\t/**\n\t * acf.getInstance\n\t *\n\t * This function will get an instance from an element\n\t *\n\t * @date\t5/3/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.getInstance = function ( $el ) {\n\t\treturn $el.data( 'acf' );\n\t};\n\n\t/**\n\t * acf.getInstances\n\t *\n\t * This function will get an array of instances from multiple elements\n\t *\n\t * @date\t5/3/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.getInstances = function ( $el ) {\n\t\tvar instances = [];\n\t\t$el.each( function () {\n\t\t\tinstances.push( acf.getInstance( $( this ) ) );\n\t\t} );\n\t\treturn instances;\n\t};\n} )( jQuery );\n","( function ( $, undefined ) {\n\tvar Notice = acf.Model.extend( {\n\t\tdata: {\n\t\t\ttext: '',\n\t\t\ttype: '',\n\t\t\ttimeout: 0,\n\t\t\tdismiss: true,\n\t\t\ttarget: false,\n\t\t\tlocation: 'before',\n\t\t\tclose: function () {},\n\t\t},\n\n\t\tevents: {\n\t\t\t'click .acf-notice-dismiss': 'onClickClose',\n\t\t},\n\n\t\ttmpl: function () {\n\t\t\treturn '<div class=\"acf-notice\"></div>';\n\t\t},\n\n\t\tsetup: function ( props ) {\n\t\t\t$.extend( this.data, props );\n\t\t\tthis.$el = $( this.tmpl() );\n\t\t},\n\n\t\tinitialize: function () {\n\t\t\t// render\n\t\t\tthis.render();\n\n\t\t\t// show\n\t\t\tthis.show();\n\t\t},\n\n\t\trender: function () {\n\t\t\t// class\n\t\t\tthis.type( this.get( 'type' ) );\n\n\t\t\t// text\n\t\t\tthis.html( '<p>' + this.get( 'text' ) + '</p>' );\n\n\t\t\t// close\n\t\t\tif ( this.get( 'dismiss' ) ) {\n\t\t\t\tthis.$el.append( '<a href=\"#\" class=\"acf-notice-dismiss acf-icon -cancel small\"></a>' );\n\t\t\t\tthis.$el.addClass( '-dismiss' );\n\t\t\t}\n\n\t\t\t// timeout\n\t\t\tvar timeout = this.get( 'timeout' );\n\t\t\tif ( timeout ) {\n\t\t\t\tthis.away( timeout );\n\t\t\t}\n\t\t},\n\n\t\tupdate: function ( props ) {\n\t\t\t// update\n\t\t\t$.extend( this.data, props );\n\n\t\t\t// re-initialize\n\t\t\tthis.initialize();\n\n\t\t\t// refresh events\n\t\t\tthis.removeEvents();\n\t\t\tthis.addEvents();\n\t\t},\n\n\t\tshow: function () {\n\t\t\tvar $target = this.get( 'target' );\n\t\t\tvar location = this.get( 'location' );\n\t\t\tif ( $target ) {\n\t\t\t\tif ( location === 'after' ) {\n\t\t\t\t\t$target.append( this.$el );\n\t\t\t\t} else {\n\t\t\t\t\t$target.prepend( this.$el );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\thide: function () {\n\t\t\tthis.$el.remove();\n\t\t},\n\n\t\taway: function ( timeout ) {\n\t\t\tthis.setTimeout( function () {\n\t\t\t\tacf.remove( this.$el );\n\t\t\t}, timeout );\n\t\t},\n\n\t\ttype: function ( type ) {\n\t\t\t// remove prev type\n\t\t\tvar prevType = this.get( 'type' );\n\t\t\tif ( prevType ) {\n\t\t\t\tthis.$el.removeClass( '-' + prevType );\n\t\t\t}\n\n\t\t\t// add new type\n\t\t\tthis.$el.addClass( '-' + type );\n\n\t\t\t// backwards compatibility\n\t\t\tif ( type == 'error' ) {\n\t\t\t\tthis.$el.addClass( 'acf-error-message' );\n\t\t\t}\n\t\t},\n\n\t\thtml: function ( html ) {\n\t\t\tthis.$el.html( acf.escHtml( html ) );\n\t\t},\n\n\t\ttext: function ( text ) {\n\t\t\tthis.$( 'p' ).html( acf.escHtml( text ) );\n\t\t},\n\n\t\tonClickClose: function ( e, $el ) {\n\t\t\te.preventDefault();\n\t\t\tthis.get( 'close' ).apply( this, arguments );\n\t\t\tthis.remove();\n\t\t},\n\t} );\n\n\tacf.newNotice = function ( props ) {\n\t\t// ensure object\n\t\tif ( typeof props !== 'object' ) {\n\t\t\tprops = { text: props };\n\t\t}\n\n\t\t// instantiate\n\t\treturn new Notice( props );\n\t};\n\n\tvar noticeManager = new acf.Model( {\n\t\twait: 'prepare',\n\t\tpriority: 1,\n\t\tinitialize: function () {\n\t\t\tconst $notices = $( '.acf-admin-notice' );\n\n\t\t\t$notices.each( function () {\n\t\t\t\tif ( $( this ).data( 'persisted' ) ) {\n\t\t\t\t\tlet dismissed = acf.getPreference( 'dismissed-notices' );\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tdismissed &&\n\t\t\t\t\t\ttypeof dismissed == 'object' &&\n\t\t\t\t\t\tdismissed.includes( $( this ).data( 'persist-id' ) )\n\t\t\t\t\t) {\n\t\t\t\t\t\t$( this ).remove();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$( this ).show();\n\t\t\t\t\t\t$( this ).on( 'click', '.notice-dismiss', function ( e ) {\n\t\t\t\t\t\t\tdismissed = acf.getPreference( 'dismissed-notices' );\n\t\t\t\t\t\t\tif ( ! dismissed || typeof dismissed != 'object' ) {\n\t\t\t\t\t\t\t\tdismissed = [];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdismissed.push( $( this ).closest( '.acf-admin-notice' ).data( 'persist-id' ) );\n\t\t\t\t\t\t\tacf.setPreference( 'dismissed-notices', dismissed );\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\t} );\n} )( jQuery );\n","( function ( $, undefined ) {\n\tvar panel = new acf.Model( {\n\t\tevents: {\n\t\t\t'click .acf-panel-title': 'onClick',\n\t\t},\n\n\t\tonClick: function ( e, $el ) {\n\t\t\te.preventDefault();\n\t\t\tthis.toggle( $el.parent() );\n\t\t},\n\n\t\tisOpen: function ( $el ) {\n\t\t\treturn $el.hasClass( '-open' );\n\t\t},\n\n\t\ttoggle: function ( $el ) {\n\t\t\tthis.isOpen( $el ) ? this.close( $el ) : this.open( $el );\n\t\t},\n\n\t\topen: function ( $el ) {\n\t\t\t$el.addClass( '-open' );\n\t\t\t$el.find( '.acf-panel-title i' ).attr(\n\t\t\t\t'class',\n\t\t\t\t'dashicons dashicons-arrow-down'\n\t\t\t);\n\t\t},\n\n\t\tclose: function ( $el ) {\n\t\t\t$el.removeClass( '-open' );\n\t\t\t$el.find( '.acf-panel-title i' ).attr(\n\t\t\t\t'class',\n\t\t\t\t'dashicons dashicons-arrow-right'\n\t\t\t);\n\t\t},\n\t} );\n} )( jQuery );\n","( function ( $, undefined ) {\n\tacf.models.Popup = acf.Model.extend( {\n\t\tdata: {\n\t\t\ttitle: '',\n\t\t\tcontent: '',\n\t\t\twidth: 0,\n\t\t\theight: 0,\n\t\t\tloading: false,\n\t\t\topenedBy: null,\n\t\t},\n\n\t\tevents: {\n\t\t\t'click [data-event=\"close\"]': 'onClickClose',\n\t\t\t'click .acf-close-popup': 'onClickClose',\n\t\t\t'keydown': 'onPressEscapeClose',\n\t\t},\n\n\t\tsetup: function ( props ) {\n\t\t\t$.extend( this.data, props );\n\t\t\tthis.$el = $( this.tmpl() );\n\t\t},\n\n\t\tinitialize: function () {\n\t\t\tthis.render();\n\t\t\tthis.open();\n\t\t\tthis.focus();\n\t\t\tthis.lockFocusToPopup( true );\n\t\t},\n\n\t\ttmpl: function () {\n\t\t\treturn [\n\t\t\t\t'<div id=\"acf-popup\" role=\"dialog\" tabindex=\"-1\">',\n\t\t\t\t'<div class=\"acf-popup-box acf-box\">',\n\t\t\t\t'<div class=\"title\"><h3></h3><a href=\"#\" class=\"acf-icon -cancel grey\" data-event=\"close\" aria-label=\"' + acf.__('Close modal') + '\"></a></div>',\n\t\t\t\t'<div class=\"inner\"></div>',\n\t\t\t\t'<div class=\"loading\"><i class=\"acf-loading\"></i></div>',\n\t\t\t\t'</div>',\n\t\t\t\t'<div class=\"bg\" data-event=\"close\"></div>',\n\t\t\t\t'</div>',\n\t\t\t].join( '' );\n\t\t},\n\n\t\trender: function () {\n\t\t\t// Extract Vars.\n\t\t\tvar title = this.get( 'title' );\n\t\t\tvar content = this.get( 'content' );\n\t\t\tvar loading = this.get( 'loading' );\n\t\t\tvar width = this.get( 'width' );\n\t\t\tvar height = this.get( 'height' );\n\n\t\t\t// Update.\n\t\t\tthis.title( title );\n\t\t\tthis.content( content );\n\t\t\tif ( width ) {\n\t\t\t\tthis.$( '.acf-popup-box' ).css( 'width', width );\n\t\t\t}\n\t\t\tif ( height ) {\n\t\t\t\tthis.$( '.acf-popup-box' ).css( 'min-height', height );\n\t\t\t}\n\t\t\tthis.loading( loading );\n\n\t\t\t// Trigger action.\n\t\t\tacf.doAction( 'append', this.$el );\n\t\t},\n\n\t\t/**\n\t\t * Places focus within the popup.\n\t\t */\n\t\tfocus: function() {\n\t\t\tthis.$el.find( '.acf-icon' ).first().trigger( 'focus' );\n\t\t},\n\n\t\t/**\n\t\t * Locks focus within the popup.\n\t\t *\n\t\t * @param {boolean} locked True to lock focus, false to unlock.\n\t\t */\n\t\tlockFocusToPopup: function( locked ) {\n\t\t\tlet inertElement = $( '#wpwrap' );\n\n\t\t\tif ( ! inertElement.length ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tinertElement[ 0 ].inert = locked;\n\t\t\tinertElement.attr( 'aria-hidden', locked );\n\t\t},\n\n\t\tupdate: function ( props ) {\n\t\t\tthis.data = acf.parseArgs( props, this.data );\n\t\t\tthis.render();\n\t\t},\n\n\t\ttitle: function ( title ) {\n\t\t\tthis.$( '.title:first h3' ).html( title );\n\t\t},\n\n\t\tcontent: function ( content ) {\n\t\t\tthis.$( '.inner:first' ).html( content );\n\t\t},\n\n\t\tloading: function ( show ) {\n\t\t\tvar $loading = this.$( '.loading:first' );\n\t\t\tshow ? $loading.show() : $loading.hide();\n\t\t},\n\n\t\topen: function () {\n\t\t\t$( 'body' ).append( this.$el );\n\t\t},\n\n\t\tclose: function () {\n\t\t\tthis.lockFocusToPopup( false );\n\t\t\tthis.returnFocusToOrigin();\n\t\t\tthis.remove();\n\t\t},\n\n\t\tonClickClose: function ( e, $el ) {\n\t\t\te.preventDefault();\n\t\t\tthis.close();\n\t\t},\n\n\t\t/**\n\t\t * Closes the popup when the escape key is pressed.\n\t\t *\n\t\t * @param {KeyboardEvent} e\n\t\t */\n\t\tonPressEscapeClose: function( e ) {\n\t\t\tif ( e.key === 'Escape' ) {\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Returns focus to the element that opened the popup\n\t\t * if it still exists in the DOM.\n\t\t */\n\t\treturnFocusToOrigin: function() {\n\t\t\tif (\n\t\t\t\tthis.data.openedBy instanceof $\n\t\t\t\t&& this.data.openedBy.closest( 'body' ).length > 0\n\t\t\t) {\n\t\t\t\tthis.data.openedBy.trigger( 'focus' );\n\t\t\t}\n\t\t}\n\n\t} );\n\n\t/**\n\t * newPopup\n\t *\n\t * Creates a new Popup with the supplied props\n\t *\n\t * @date\t17/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tobject props\n\t * @return\tobject\n\t */\n\n\tacf.newPopup = function ( props ) {\n\t\treturn new acf.models.Popup( props );\n\t};\n} )( jQuery );\n","( function ( $, undefined ) {\n\tacf.newTooltip = function ( props ) {\n\t\t// ensure object\n\t\tif ( typeof props !== 'object' ) {\n\t\t\tprops = { text: props };\n\t\t}\n\n\t\t// confirmRemove\n\t\tif ( props.confirmRemove !== undefined ) {\n\t\t\tprops.textConfirm = acf.__( 'Remove' );\n\t\t\tprops.textCancel = acf.__( 'Cancel' );\n\t\t\treturn new TooltipConfirm( props );\n\n\t\t\t// confirm\n\t\t} else if ( props.confirm !== undefined ) {\n\t\t\treturn new TooltipConfirm( props );\n\n\t\t\t// default\n\t\t} else {\n\t\t\treturn new Tooltip( props );\n\t\t}\n\t};\n\n\tvar Tooltip = acf.Model.extend( {\n\t\tdata: {\n\t\t\ttext: '',\n\t\t\ttimeout: 0,\n\t\t\ttarget: null,\n\t\t},\n\n\t\ttmpl: function () {\n\t\t\treturn '<div class=\"acf-tooltip\"></div>';\n\t\t},\n\n\t\tsetup: function ( props ) {\n\t\t\t$.extend( this.data, props );\n\t\t\tthis.$el = $( this.tmpl() );\n\t\t},\n\n\t\tinitialize: function () {\n\t\t\t// render\n\t\t\tthis.render();\n\n\t\t\t// append\n\t\t\tthis.show();\n\n\t\t\t// position\n\t\t\tthis.position();\n\n\t\t\t// timeout\n\t\t\tvar timeout = this.get( 'timeout' );\n\t\t\tif ( timeout ) {\n\t\t\t\tsetTimeout( $.proxy( this.fade, this ), timeout );\n\t\t\t}\n\t\t},\n\n\t\tupdate: function ( props ) {\n\t\t\t$.extend( this.data, props );\n\t\t\tthis.initialize();\n\t\t},\n\n\t\trender: function () {\n\t\t\tthis.html( this.get( 'text' ) );\n\t\t},\n\n\t\tshow: function () {\n\t\t\t$( 'body' ).append( this.$el );\n\t\t},\n\n\t\thide: function () {\n\t\t\tthis.$el.remove();\n\t\t},\n\n\t\tfade: function () {\n\t\t\t// add class\n\t\t\tthis.$el.addClass( 'acf-fade-up' );\n\n\t\t\t// remove\n\t\t\tthis.setTimeout( function () {\n\t\t\t\tthis.remove();\n\t\t\t}, 250 );\n\t\t},\n\n\t\thtml: function ( html ) {\n\t\t\tthis.$el.html( html );\n\t\t},\n\n\t\tposition: function () {\n\t\t\t// vars\n\t\t\tvar $tooltip = this.$el;\n\t\t\tvar $target = this.get( 'target' );\n\t\t\tif ( ! $target ) return;\n\n\t\t\t// Reset position.\n\t\t\t$tooltip\n\t\t\t\t.removeClass( 'right left bottom top' )\n\t\t\t\t.css( { top: 0, left: 0 } );\n\n\t\t\t// Declare tollerance to edge of screen.\n\t\t\tvar tolerance = 10;\n\n\t\t\t// Find target position.\n\t\t\tvar targetWidth = $target.outerWidth();\n\t\t\tvar targetHeight = $target.outerHeight();\n\t\t\tvar targetTop = $target.offset().top;\n\t\t\tvar targetLeft = $target.offset().left;\n\n\t\t\t// Find tooltip position.\n\t\t\tvar tooltipWidth = $tooltip.outerWidth();\n\t\t\tvar tooltipHeight = $tooltip.outerHeight();\n\t\t\tvar tooltipTop = $tooltip.offset().top; // Should be 0, but WP media grid causes this to be 32 (toolbar padding).\n\n\t\t\t// Assume default top alignment.\n\t\t\tvar top = targetTop - tooltipHeight - tooltipTop;\n\t\t\tvar left = targetLeft + targetWidth / 2 - tooltipWidth / 2;\n\n\t\t\t// Check if too far left.\n\t\t\tif ( left < tolerance ) {\n\t\t\t\t$tooltip.addClass( 'right' );\n\t\t\t\tleft = targetLeft + targetWidth;\n\t\t\t\ttop =\n\t\t\t\t\ttargetTop +\n\t\t\t\t\ttargetHeight / 2 -\n\t\t\t\t\ttooltipHeight / 2 -\n\t\t\t\t\ttooltipTop;\n\n\t\t\t\t// Check if too far right.\n\t\t\t} else if (\n\t\t\t\tleft + tooltipWidth + tolerance >\n\t\t\t\t$( window ).width()\n\t\t\t) {\n\t\t\t\t$tooltip.addClass( 'left' );\n\t\t\t\tleft = targetLeft - tooltipWidth;\n\t\t\t\ttop =\n\t\t\t\t\ttargetTop +\n\t\t\t\t\ttargetHeight / 2 -\n\t\t\t\t\ttooltipHeight / 2 -\n\t\t\t\t\ttooltipTop;\n\n\t\t\t\t// Check if too far up.\n\t\t\t} else if ( top - $( window ).scrollTop() < tolerance ) {\n\t\t\t\t$tooltip.addClass( 'bottom' );\n\t\t\t\ttop = targetTop + targetHeight - tooltipTop;\n\n\t\t\t\t// No colision with edges.\n\t\t\t} else {\n\t\t\t\t$tooltip.addClass( 'top' );\n\t\t\t}\n\n\t\t\t// update css\n\t\t\t$tooltip.css( { top: top, left: left } );\n\t\t},\n\t} );\n\n\tvar TooltipConfirm = Tooltip.extend( {\n\t\tdata: {\n\t\t\ttext: '',\n\t\t\ttextConfirm: '',\n\t\t\ttextCancel: '',\n\t\t\ttarget: null,\n\t\t\ttargetConfirm: true,\n\t\t\tconfirm: function () {},\n\t\t\tcancel: function () {},\n\t\t\tcontext: false,\n\t\t},\n\n\t\tevents: {\n\t\t\t'click [data-event=\"cancel\"]': 'onCancel',\n\t\t\t'click [data-event=\"confirm\"]': 'onConfirm',\n\t\t},\n\n\t\taddEvents: function () {\n\t\t\t// add events\n\t\t\tacf.Model.prototype.addEvents.apply( this );\n\n\t\t\t// vars\n\t\t\tvar $document = $( document );\n\t\t\tvar $target = this.get( 'target' );\n\n\t\t\t// add global 'cancel' click event\n\t\t\t// - use timeout to avoid the current 'click' event triggering the onCancel function\n\t\t\tthis.setTimeout( function () {\n\t\t\t\tthis.on( $document, 'click', 'onCancel' );\n\t\t\t} );\n\n\t\t\t// add target 'confirm' click event\n\t\t\t// - allow setting to control this feature\n\t\t\tif ( this.get( 'targetConfirm' ) ) {\n\t\t\t\tthis.on( $target, 'click', 'onConfirm' );\n\t\t\t}\n\t\t},\n\n\t\tremoveEvents: function () {\n\t\t\t// remove events\n\t\t\tacf.Model.prototype.removeEvents.apply( this );\n\n\t\t\t// vars\n\t\t\tvar $document = $( document );\n\t\t\tvar $target = this.get( 'target' );\n\n\t\t\t// remove custom events\n\t\t\tthis.off( $document, 'click' );\n\t\t\tthis.off( $target, 'click' );\n\t\t},\n\n\t\trender: function () {\n\t\t\t// defaults\n\t\t\tvar text = this.get( 'text' ) || acf.__( 'Are you sure?' );\n\t\t\tvar textConfirm = this.get( 'textConfirm' ) || acf.__( 'Yes' );\n\t\t\tvar textCancel = this.get( 'textCancel' ) || acf.__( 'No' );\n\n\t\t\t// html\n\t\t\tvar html = [\n\t\t\t\ttext,\n\t\t\t\t'<a href=\"#\" data-event=\"confirm\">' + textConfirm + '</a>',\n\t\t\t\t'<a href=\"#\" data-event=\"cancel\">' + textCancel + '</a>',\n\t\t\t].join( ' ' );\n\n\t\t\t// html\n\t\t\tthis.html( html );\n\n\t\t\t// class\n\t\t\tthis.$el.addClass( '-confirm' );\n\t\t},\n\n\t\tonCancel: function ( e, $el ) {\n\t\t\t// prevent default\n\t\t\te.preventDefault();\n\t\t\te.stopImmediatePropagation();\n\n\t\t\t// callback\n\t\t\tvar callback = this.get( 'cancel' );\n\t\t\tvar context = this.get( 'context' ) || this;\n\t\t\tcallback.apply( context, arguments );\n\n\t\t\t//remove\n\t\t\tthis.remove();\n\t\t},\n\n\t\tonConfirm: function ( e, $el ) {\n\t\t\t// Prevent event from propagating completely to allow \"targetConfirm\" to be clicked.\n\t\t\te.preventDefault();\n\t\t\te.stopImmediatePropagation();\n\n\t\t\t// callback\n\t\t\tvar callback = this.get( 'confirm' );\n\t\t\tvar context = this.get( 'context' ) || this;\n\t\t\tcallback.apply( context, arguments );\n\n\t\t\t//remove\n\t\t\tthis.remove();\n\t\t},\n\t} );\n\n\t// storage\n\tacf.models.Tooltip = Tooltip;\n\tacf.models.TooltipConfirm = TooltipConfirm;\n\n\t/**\n\t * tooltipManager\n\t *\n\t * description\n\t *\n\t * @date\t17/4/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar tooltipHoverHelper = new acf.Model( {\n\t\ttooltip: false,\n\n\t\tevents: {\n\t\t\t'mouseenter .acf-js-tooltip': 'showTitle',\n\t\t\t'mouseup .acf-js-tooltip': 'hideTitle',\n\t\t\t'mouseleave .acf-js-tooltip': 'hideTitle',\n\t\t\t'focus .acf-js-tooltip': 'showTitle',\n\t\t\t'blur .acf-js-tooltip': 'hideTitle',\n\t\t\t'keyup .acf-js-tooltip': 'onKeyUp',\n\t\t},\n\n\t\tshowTitle: function ( e, $el ) {\n\t\t\t// vars\n\t\t\tvar title = $el.attr( 'title' );\n\n\t\t\t// bail early if no title\n\t\t\tif ( ! title ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// clear title to avoid default browser tooltip\n\t\t\t$el.attr( 'title', '' );\n\n\t\t\t// create\n\t\t\tif ( ! this.tooltip ) {\n\t\t\t\tthis.tooltip = acf.newTooltip( {\n\t\t\t\t\ttext: title,\n\t\t\t\t\ttarget: $el,\n\t\t\t\t} );\n\n\t\t\t\t// update\n\t\t\t} else {\n\t\t\t\tthis.tooltip.update( {\n\t\t\t\t\ttext: title,\n\t\t\t\t\ttarget: $el,\n\t\t\t\t} );\n\t\t\t}\n\t\t},\n\n\t\thideTitle: function ( e, $el ) {\n\t\t\t// hide tooltip\n\t\t\tthis.tooltip.hide();\n\n\t\t\t// restore title\n\t\t\t$el.attr( 'title', this.tooltip.get( 'text' ) );\n\t\t},\n\n\t\tonKeyUp: function( e, $el ) {\n\t\t\tif ( 'Escape' === e.key ) {\n\t\t\t\tthis.hideTitle( e, $el );\n\t\t\t}\n\t\t},\n\t} );\n} )( jQuery );\n","( function ( $, undefined ) {\n\t/**\n\t * acf\n\t *\n\t * description\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\t// The global acf object\n\tvar acf = {};\n\n\t// Set as a browser global\n\twindow.acf = acf;\n\n\t/** @var object Data sent from PHP */\n\tacf.data = {};\n\n\t/**\n\t * get\n\t *\n\t * Gets a specific data value\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @return\tmixed\n\t */\n\n\tacf.get = function ( name ) {\n\t\treturn this.data[ name ] || null;\n\t};\n\n\t/**\n\t * has\n\t *\n\t * Returns `true` if the data exists and is not null\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @return\tboolean\n\t */\n\n\tacf.has = function ( name ) {\n\t\treturn this.get( name ) !== null;\n\t};\n\n\t/**\n\t * set\n\t *\n\t * Sets a specific data value\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @param\tmixed value\n\t * @return\tthis\n\t */\n\n\tacf.set = function ( name, value ) {\n\t\tthis.data[ name ] = value;\n\t\treturn this;\n\t};\n\n\t/**\n\t * uniqueId\n\t *\n\t * Returns a unique ID\n\t *\n\t * @date\t9/11/17\n\t * @since\t5.6.3\n\t *\n\t * @param\tstring prefix Optional prefix.\n\t * @return\tstring\n\t */\n\n\tvar idCounter = 0;\n\tacf.uniqueId = function ( prefix ) {\n\t\tvar id = ++idCounter + '';\n\t\treturn prefix ? prefix + id : id;\n\t};\n\n\t/**\n\t * acf.uniqueArray\n\t *\n\t * Returns a new array with only unique values\n\t * Credit: https://stackoverflow.com/questions/1960473/get-all-unique-values-in-an-array-remove-duplicates\n\t *\n\t * @date\t23/3/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.uniqueArray = function ( array ) {\n\t\tfunction onlyUnique( value, index, self ) {\n\t\t\treturn self.indexOf( value ) === index;\n\t\t}\n\t\treturn array.filter( onlyUnique );\n\t};\n\n\t/**\n\t * uniqid\n\t *\n\t * Returns a unique ID (PHP version)\n\t *\n\t * @date\t9/11/17\n\t * @since\t5.6.3\n\t * @source\thttp://locutus.io/php/misc/uniqid/\n\t *\n\t * @param\tstring prefix Optional prefix.\n\t * @return\tstring\n\t */\n\n\tvar uniqidSeed = '';\n\tacf.uniqid = function ( prefix, moreEntropy ) {\n\t\t// discuss at: http://locutus.io/php/uniqid/\n\t\t// original by: Kevin van Zonneveld (http://kvz.io)\n\t\t// revised by: Kankrelune (http://www.webfaktory.info/)\n\t\t// note 1: Uses an internal counter (in locutus global) to avoid collision\n\t\t// example 1: var $id = uniqid()\n\t\t// example 1: var $result = $id.length === 13\n\t\t// returns 1: true\n\t\t// example 2: var $id = uniqid('foo')\n\t\t// example 2: var $result = $id.length === (13 + 'foo'.length)\n\t\t// returns 2: true\n\t\t// example 3: var $id = uniqid('bar', true)\n\t\t// example 3: var $result = $id.length === (23 + 'bar'.length)\n\t\t// returns 3: true\n\t\tif ( typeof prefix === 'undefined' ) {\n\t\t\tprefix = '';\n\t\t}\n\n\t\tvar retId;\n\t\tvar formatSeed = function ( seed, reqWidth ) {\n\t\t\tseed = parseInt( seed, 10 ).toString( 16 ); // to hex str\n\t\t\tif ( reqWidth < seed.length ) {\n\t\t\t\t// so long we split\n\t\t\t\treturn seed.slice( seed.length - reqWidth );\n\t\t\t}\n\t\t\tif ( reqWidth > seed.length ) {\n\t\t\t\t// so short we pad\n\t\t\t\treturn Array( 1 + ( reqWidth - seed.length ) ).join( '0' ) + seed;\n\t\t\t}\n\t\t\treturn seed;\n\t\t};\n\n\t\tif ( ! uniqidSeed ) {\n\t\t\t// init seed with big random int\n\t\t\tuniqidSeed = Math.floor( Math.random() * 0x75bcd15 );\n\t\t}\n\t\tuniqidSeed++;\n\n\t\tretId = prefix; // start with prefix, add current milliseconds hex string\n\t\tretId += formatSeed( parseInt( new Date().getTime() / 1000, 10 ), 8 );\n\t\tretId += formatSeed( uniqidSeed, 5 ); // add seed hex string\n\t\tif ( moreEntropy ) {\n\t\t\t// for more entropy we add a float lower to 10\n\t\t\tretId += ( Math.random() * 10 ).toFixed( 8 ).toString();\n\t\t}\n\n\t\treturn retId;\n\t};\n\n\t/**\n\t * strReplace\n\t *\n\t * Performs a string replace\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring search\n\t * @param\tstring replace\n\t * @param\tstring subject\n\t * @return\tstring\n\t */\n\n\tacf.strReplace = function ( search, replace, subject ) {\n\t\treturn subject.split( search ).join( replace );\n\t};\n\n\t/**\n\t * strCamelCase\n\t *\n\t * Converts a string into camelCase\n\t * Thanks to https://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring str\n\t * @return\tstring\n\t */\n\n\tacf.strCamelCase = function ( str ) {\n\t\tvar matches = str.match( /([a-zA-Z0-9]+)/g );\n\t\treturn matches\n\t\t\t? matches\n\t\t\t\t\t.map( function ( s, i ) {\n\t\t\t\t\t\tvar c = s.charAt( 0 );\n\t\t\t\t\t\treturn ( i === 0 ? c.toLowerCase() : c.toUpperCase() ) + s.slice( 1 );\n\t\t\t\t\t} )\n\t\t\t\t\t.join( '' )\n\t\t\t: '';\n\t};\n\n\t/**\n\t * strPascalCase\n\t *\n\t * Converts a string into PascalCase\n\t * Thanks to https://stackoverflow.com/questions/1026069/how-do-i-make-the-first-letter-of-a-string-uppercase-in-javascript\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring str\n\t * @return\tstring\n\t */\n\n\tacf.strPascalCase = function ( str ) {\n\t\tvar camel = acf.strCamelCase( str );\n\t\treturn camel.charAt( 0 ).toUpperCase() + camel.slice( 1 );\n\t};\n\n\t/**\n\t * acf.strSlugify\n\t *\n\t * Converts a string into a HTML class friendly slug\n\t *\n\t * @date\t21/3/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tstring str\n\t * @return\tstring\n\t */\n\n\tacf.strSlugify = function ( str ) {\n\t\treturn acf.strReplace( '_', '-', str.toLowerCase() );\n\t};\n\n\tacf.strSanitize = function ( str, toLowerCase = true ) {\n\t\t// chars (https://jsperf.com/replace-foreign-characters)\n\t\tvar map = {\n\t\t\tÀ: 'A',\n\t\t\tÁ: 'A',\n\t\t\tÂ: 'A',\n\t\t\tÃ: 'A',\n\t\t\tÄ: 'A',\n\t\t\tÅ: 'A',\n\t\t\tÆ: 'AE',\n\t\t\tÇ: 'C',\n\t\t\tÈ: 'E',\n\t\t\tÉ: 'E',\n\t\t\tÊ: 'E',\n\t\t\tË: 'E',\n\t\t\tÌ: 'I',\n\t\t\tÍ: 'I',\n\t\t\tÎ: 'I',\n\t\t\tÏ: 'I',\n\t\t\tÐ: 'D',\n\t\t\tÑ: 'N',\n\t\t\tÒ: 'O',\n\t\t\tÓ: 'O',\n\t\t\tÔ: 'O',\n\t\t\tÕ: 'O',\n\t\t\tÖ: 'O',\n\t\t\tØ: 'O',\n\t\t\tÙ: 'U',\n\t\t\tÚ: 'U',\n\t\t\tÛ: 'U',\n\t\t\tÜ: 'U',\n\t\t\tÝ: 'Y',\n\t\t\tß: 's',\n\t\t\tà: 'a',\n\t\t\tá: 'a',\n\t\t\tâ: 'a',\n\t\t\tã: 'a',\n\t\t\tä: 'a',\n\t\t\tå: 'a',\n\t\t\tæ: 'ae',\n\t\t\tç: 'c',\n\t\t\tè: 'e',\n\t\t\té: 'e',\n\t\t\tê: 'e',\n\t\t\të: 'e',\n\t\t\tì: 'i',\n\t\t\tí: 'i',\n\t\t\tî: 'i',\n\t\t\tï: 'i',\n\t\t\tñ: 'n',\n\t\t\tò: 'o',\n\t\t\tó: 'o',\n\t\t\tô: 'o',\n\t\t\tõ: 'o',\n\t\t\tö: 'o',\n\t\t\tø: 'o',\n\t\t\tù: 'u',\n\t\t\tú: 'u',\n\t\t\tû: 'u',\n\t\t\tü: 'u',\n\t\t\tý: 'y',\n\t\t\tÿ: 'y',\n\t\t\tĀ: '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'i',\n\t\t\tǑ: 'O',\n\t\t\tǒ: 'o',\n\t\t\tǓ: 'U',\n\t\t\tǔ: 'u',\n\t\t\tǕ: 'U',\n\t\t\tǖ: 'u',\n\t\t\tǗ: 'U',\n\t\t\tǘ: 'u',\n\t\t\tǙ: 'U',\n\t\t\tǚ: 'u',\n\t\t\tǛ: 'U',\n\t\t\tǜ: 'u',\n\t\t\tǺ: 'A',\n\t\t\tǻ: 'a',\n\t\t\tǼ: 'AE',\n\t\t\tǽ: 'ae',\n\t\t\tǾ: 'O',\n\t\t\tǿ: 'o',\n\n\t\t\t// extra\n\t\t\t' ': '_',\n\t\t\t\"'\": '',\n\t\t\t'?': '',\n\t\t\t'/': '',\n\t\t\t'\\\\': '',\n\t\t\t'.': '',\n\t\t\t',': '',\n\t\t\t'`': '',\n\t\t\t'>': '',\n\t\t\t'<': '',\n\t\t\t'\"': '',\n\t\t\t'[': '',\n\t\t\t']': '',\n\t\t\t'|': '',\n\t\t\t'{': '',\n\t\t\t'}': '',\n\t\t\t'(': '',\n\t\t\t')': '',\n\t\t};\n\n\t\t// vars\n\t\tvar nonWord = /\\W/g;\n\t\tvar mapping = function ( c ) {\n\t\t\treturn map[ c ] !== undefined ? map[ c ] : c;\n\t\t};\n\n\t\t// replace\n\t\tstr = str.replace( nonWord, mapping );\n\n\t\t// lowercase\n\t\tif ( toLowerCase ) {\n\t\t\tstr = str.toLowerCase();\n\t\t}\n\n\t\t// return\n\t\treturn str;\n\t};\n\n\t/**\n\t * acf.strMatch\n\t *\n\t * Returns the number of characters that match between two strings\n\t *\n\t * @date\t1/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.strMatch = function ( s1, s2 ) {\n\t\t// vars\n\t\tvar val = 0;\n\t\tvar min = Math.min( s1.length, s2.length );\n\n\t\t// loop\n\t\tfor ( var i = 0; i < min; i++ ) {\n\t\t\tif ( s1[ i ] !== s2[ i ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tval++;\n\t\t}\n\n\t\t// return\n\t\treturn val;\n\t};\n\n\t/**\n\t * Escapes HTML entities from a string.\n\t *\n\t * @date\t08/06/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\tstring string The input string.\n\t * @return\tstring\n\t */\n\tacf.strEscape = function ( string ) {\n\t\tvar htmlEscapes = {\n\t\t\t'&': '&',\n\t\t\t'<': '<',\n\t\t\t'>': '>',\n\t\t\t'\"': '"',\n\t\t\t\"'\": ''',\n\t\t};\n\t\treturn ( '' + string ).replace( /[&<>\"']/g, function ( chr ) {\n\t\t\treturn htmlEscapes[ chr ];\n\t\t} );\n\t};\n\n\t// Tests.\n\t//console.log( acf.strEscape('Test 1') );\n\t//console.log( acf.strEscape('Test & 1') );\n\t//console.log( acf.strEscape('Test\\'s & 1') );\n\t//console.log( acf.strEscape('<script>js</script>') );\n\n\t/**\n\t * Unescapes HTML entities from a string.\n\t *\n\t * @date\t08/06/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\tstring string The input string.\n\t * @return\tstring\n\t */\n\tacf.strUnescape = function ( string ) {\n\t\tvar htmlUnescapes = {\n\t\t\t'&': '&',\n\t\t\t'<': '<',\n\t\t\t'>': '>',\n\t\t\t'"': '\"',\n\t\t\t''': \"'\",\n\t\t};\n\t\treturn ( '' + string ).replace( /&|<|>|"|'/g, function ( entity ) {\n\t\t\treturn htmlUnescapes[ entity ];\n\t\t} );\n\t};\n\n\t// Tests.\n\t//console.log( acf.strUnescape( acf.strEscape('Test 1') ) );\n\t//console.log( acf.strUnescape( acf.strEscape('Test & 1') ) );\n\t//console.log( acf.strUnescape( acf.strEscape('Test\\'s & 1') ) );\n\t//console.log( acf.strUnescape( acf.strEscape('<script>js</script>') ) );\n\n\t/**\n\t * Escapes HTML entities from a string.\n\t *\n\t * @date\t08/06/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\tstring string The input string.\n\t * @return\tstring\n\t */\n\tacf.escAttr = acf.strEscape;\n\n\t/**\n\t * Encodes <script> tags for safe HTML output.\n\t *\n\t * @date\t08/06/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\tstring string The input string.\n\t * @return\tstring\n\t */\n\tacf.escHtml = function ( string ) {\n\t\treturn ( '' + string ).replace( /<script|<\\/script/g, function ( html ) {\n\t\t\treturn acf.strEscape( html );\n\t\t} );\n\t};\n\n\t// Tests.\n\t//console.log( acf.escHtml('<script>js</script>') );\n\t//console.log( acf.escHtml( acf.strEscape('<script>js</script>') ) );\n\t//console.log( acf.escHtml( '<script>js1</script><script>js2</script>' ) );\n\n\t/**\n\t * Encode a string potentially containing HTML into it's HTML entities equivalent.\n\t *\n\t * @since 6.3.6\n\t *\n\t * @param {string} string String to encode.\n\t * @return {string} The encoded string\n\t */\n\tacf.encode = function ( string ) {\n\t\treturn $( '<textarea/>' ).text( string ).html();\n\t};\n\n\t/**\n\t * Decode a HTML encoded string into it's original form.\n\t *\n\t * @since 5.6.5\n\t *\n\t * @param {string} string String to encode.\n\t * @return {string} The encoded string\n\t */\n\tacf.decode = function ( string ) {\n\t\treturn $( '<textarea/>' ).html( string ).text();\n\t};\n\n\t/**\n\t * parseArgs\n\t *\n\t * Merges together defaults and args much like the WP wp_parse_args function\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tobject args\n\t * @param\tobject defaults\n\t * @return\tobject\n\t */\n\n\tacf.parseArgs = function ( args, defaults ) {\n\t\tif ( typeof args !== 'object' ) args = {};\n\t\tif ( typeof defaults !== 'object' ) defaults = {};\n\t\treturn $.extend( {}, defaults, args );\n\t};\n\n\t/**\n\t * __\n\t *\n\t * Retrieve the translation of $text.\n\t *\n\t * @date\t16/4/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tstring text Text to translate.\n\t * @return\tstring Translated text.\n\t */\n\n\tif ( window.acfL10n == undefined ) {\n\t\tacfL10n = {};\n\t}\n\n\tacf.__ = function ( text ) {\n\t\treturn acfL10n[ text ] || text;\n\t};\n\n\t/**\n\t * _x\n\t *\n\t * Retrieve translated string with gettext context.\n\t *\n\t * @date\t16/4/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tstring text Text to translate.\n\t * @param\tstring context Context information for the translators.\n\t * @return\tstring Translated text.\n\t */\n\n\tacf._x = function ( text, context ) {\n\t\treturn acfL10n[ text + '.' + context ] || acfL10n[ text ] || text;\n\t};\n\n\t/**\n\t * _n\n\t *\n\t * Retrieve the plural or single form based on the amount.\n\t *\n\t * @date\t16/4/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tstring single Single text to translate.\n\t * @param\tstring plural Plural text to translate.\n\t * @param\tint number The number to compare against.\n\t * @return\tstring Translated text.\n\t */\n\n\tacf._n = function ( single, plural, number ) {\n\t\tif ( number == 1 ) {\n\t\t\treturn acf.__( single );\n\t\t} else {\n\t\t\treturn acf.__( plural );\n\t\t}\n\t};\n\n\tacf.isArray = function ( a ) {\n\t\treturn Array.isArray( a );\n\t};\n\n\tacf.isObject = function ( a ) {\n\t\treturn typeof a === 'object';\n\t};\n\n\t/**\n\t * serialize\n\t *\n\t * description\n\t *\n\t * @date\t24/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar buildObject = function ( obj, name, value ) {\n\t\t// replace [] with placeholder\n\t\tname = name.replace( '[]', '[%%index%%]' );\n\n\t\t// vars\n\t\tvar keys = name.match( /([^\\[\\]])+/g );\n\t\tif ( ! keys ) return;\n\t\tvar length = keys.length;\n\t\tvar ref = obj;\n\n\t\t// loop\n\t\tfor ( var i = 0; i < length; i++ ) {\n\t\t\t// vars\n\t\t\tvar key = String( keys[ i ] );\n\n\t\t\t// value\n\t\t\tif ( i == length - 1 ) {\n\t\t\t\t// %%index%%\n\t\t\t\tif ( key === '%%index%%' ) {\n\t\t\t\t\tref.push( value );\n\n\t\t\t\t\t// default\n\t\t\t\t} else {\n\t\t\t\t\tref[ key ] = value;\n\t\t\t\t}\n\n\t\t\t\t// path\n\t\t\t} else {\n\t\t\t\t// array\n\t\t\t\tif ( keys[ i + 1 ] === '%%index%%' ) {\n\t\t\t\t\tif ( ! acf.isArray( ref[ key ] ) ) {\n\t\t\t\t\t\tref[ key ] = [];\n\t\t\t\t\t}\n\n\t\t\t\t\t// object\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! acf.isObject( ref[ key ] ) ) {\n\t\t\t\t\t\tref[ key ] = {};\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// crawl\n\t\t\t\tref = ref[ key ];\n\t\t\t}\n\t\t}\n\t};\n\n\tacf.serialize = function ( $el, prefix ) {\n\t\t// vars\n\t\tvar obj = {};\n\t\tvar inputs = acf.serializeArray( $el );\n\n\t\t// prefix\n\t\tif ( prefix !== undefined ) {\n\t\t\t// filter and modify\n\t\t\tinputs = inputs\n\t\t\t\t.filter( function ( item ) {\n\t\t\t\t\treturn item.name.indexOf( prefix ) === 0;\n\t\t\t\t} )\n\t\t\t\t.map( function ( item ) {\n\t\t\t\t\titem.name = item.name.slice( prefix.length );\n\t\t\t\t\treturn item;\n\t\t\t\t} );\n\t\t}\n\n\t\t// loop\n\t\tfor ( var i = 0; i < inputs.length; i++ ) {\n\t\t\tbuildObject( obj, inputs[ i ].name, inputs[ i ].value );\n\t\t}\n\n\t\t// return\n\t\treturn obj;\n\t};\n\n\t/**\n\t * acf.serializeArray\n\t *\n\t * Similar to $.serializeArray() but works with a parent wrapping element.\n\t *\n\t * @date\t19/8/18\n\t * @since\t5.7.3\n\t *\n\t * @param\tjQuery $el The element or form to serialize.\n\t * @return\tarray\n\t */\n\n\tacf.serializeArray = function ( $el ) {\n\t\treturn $el.find( 'select, textarea, input' ).serializeArray();\n\t};\n\n\t/**\n\t * acf.serializeForAjax\n\t *\n\t * Returns an object containing name => value data ready to be encoded for Ajax.\n\t *\n\t * @date\t17/12/18\n\t * @since\t5.8.0\n\t *\n\t * @param\tjQUery $el The element or form to serialize.\n\t * @return\tobject\n\t */\n\tacf.serializeForAjax = function ( $el ) {\n\t\t// vars\n\t\tvar data = {};\n\t\tvar index = {};\n\n\t\t// Serialize inputs.\n\t\tvar inputs = acf.serializeArray( $el );\n\n\t\t// Loop over inputs and build data.\n\t\tinputs.map( function ( item ) {\n\t\t\t// Append to array.\n\t\t\tif ( item.name.slice( -2 ) === '[]' ) {\n\t\t\t\tdata[ item.name ] = data[ item.name ] || [];\n\t\t\t\tdata[ item.name ].push( item.value );\n\t\t\t\t// Append\n\t\t\t} else {\n\t\t\t\tdata[ item.name ] = item.value;\n\t\t\t}\n\t\t} );\n\n\t\t// return\n\t\treturn data;\n\t};\n\n\t/**\n\t * addAction\n\t *\n\t * Wrapper for acf.hooks.addAction\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\t/*\n\tvar prefixAction = function( action ){\n\t\treturn 'acf_' + action;\n\t}\n*/\n\n\tacf.addAction = function ( action, callback, priority, context ) {\n\t\t//action = prefixAction(action);\n\t\tacf.hooks.addAction.apply( this, arguments );\n\t\treturn this;\n\t};\n\n\t/**\n\t * removeAction\n\t *\n\t * Wrapper for acf.hooks.removeAction\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.removeAction = function ( action, callback ) {\n\t\t//action = prefixAction(action);\n\t\tacf.hooks.removeAction.apply( this, arguments );\n\t\treturn this;\n\t};\n\n\t/**\n\t * doAction\n\t *\n\t * Wrapper for acf.hooks.doAction\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tvar actionHistory = {};\n\t//var currentAction = false;\n\tacf.doAction = function ( action ) {\n\t\t//action = prefixAction(action);\n\t\t//currentAction = action;\n\t\tactionHistory[ action ] = 1;\n\t\tacf.hooks.doAction.apply( this, arguments );\n\t\tactionHistory[ action ] = 0;\n\t\treturn this;\n\t};\n\n\t/**\n\t * doingAction\n\t *\n\t * Return true if doing action\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.doingAction = function ( action ) {\n\t\t//action = prefixAction(action);\n\t\treturn actionHistory[ action ] === 1;\n\t};\n\n\t/**\n\t * didAction\n\t *\n\t * Wrapper for acf.hooks.doAction\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.didAction = function ( action ) {\n\t\t//action = prefixAction(action);\n\t\treturn actionHistory[ action ] !== undefined;\n\t};\n\n\t/**\n\t * currentAction\n\t *\n\t * Wrapper for acf.hooks.doAction\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.currentAction = function () {\n\t\tfor ( var k in actionHistory ) {\n\t\t\tif ( actionHistory[ k ] ) {\n\t\t\t\treturn k;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n\n\t/**\n\t * addFilter\n\t *\n\t * Wrapper for acf.hooks.addFilter\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.addFilter = function ( action ) {\n\t\t//action = prefixAction(action);\n\t\tacf.hooks.addFilter.apply( this, arguments );\n\t\treturn this;\n\t};\n\n\t/**\n\t * removeFilter\n\t *\n\t * Wrapper for acf.hooks.removeFilter\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.removeFilter = function ( action ) {\n\t\t//action = prefixAction(action);\n\t\tacf.hooks.removeFilter.apply( this, arguments );\n\t\treturn this;\n\t};\n\n\t/**\n\t * applyFilters\n\t *\n\t * Wrapper for acf.hooks.applyFilters\n\t *\n\t * @date\t14/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tn/a\n\t * @return\tthis\n\t */\n\n\tacf.applyFilters = function ( action ) {\n\t\t//action = prefixAction(action);\n\t\treturn acf.hooks.applyFilters.apply( this, arguments );\n\t};\n\n\t/**\n\t * getArgs\n\t *\n\t * description\n\t *\n\t * @date\t15/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.arrayArgs = function ( args ) {\n\t\treturn Array.prototype.slice.call( args );\n\t};\n\n\t/**\n\t * extendArgs\n\t *\n\t * description\n\t *\n\t * @date\t15/12/17\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\t/*\n\tacf.extendArgs = function( ){\n\t\tvar args = Array.prototype.slice.call( arguments );\n\t\tvar realArgs = args.shift();\n\t\t\t\n\t\tArray.prototype.push.call(arguments, 'bar')\n\t\treturn Array.prototype.push.apply( args, arguments );\n\t};\n*/\n\n\t// Preferences\n\t// - use try/catch to avoid JS error if cookies are disabled on front-end form\n\ttry {\n\t\tvar preferences = JSON.parse( localStorage.getItem( 'acf' ) ) || {};\n\t} catch ( e ) {\n\t\tvar preferences = {};\n\t}\n\n\t/**\n\t * getPreferenceName\n\t *\n\t * Gets the true preference name.\n\t * Converts \"this.thing\" to \"thing-123\" if editing post 123.\n\t *\n\t * @date\t11/11/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @return\tstring\n\t */\n\n\tvar getPreferenceName = function ( name ) {\n\t\tif ( name.substr( 0, 5 ) === 'this.' ) {\n\t\t\tname = name.substr( 5 ) + '-' + acf.get( 'post_id' );\n\t\t}\n\t\treturn name;\n\t};\n\n\t/**\n\t * acf.getPreference\n\t *\n\t * Gets a preference setting or null if not set.\n\t *\n\t * @date\t11/11/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @return\tmixed\n\t */\n\n\tacf.getPreference = function ( name ) {\n\t\tname = getPreferenceName( name );\n\t\treturn preferences[ name ] || null;\n\t};\n\n\t/**\n\t * acf.setPreference\n\t *\n\t * Sets a preference setting.\n\t *\n\t * @date\t11/11/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @param\tmixed value\n\t * @return\tn/a\n\t */\n\n\tacf.setPreference = function ( name, value ) {\n\t\tname = getPreferenceName( name );\n\t\tif ( value === null ) {\n\t\t\tdelete preferences[ name ];\n\t\t} else {\n\t\t\tpreferences[ name ] = value;\n\t\t}\n\t\tlocalStorage.setItem( 'acf', JSON.stringify( preferences ) );\n\t};\n\n\t/**\n\t * acf.removePreference\n\t *\n\t * Removes a preference setting.\n\t *\n\t * @date\t11/11/17\n\t * @since\t5.6.5\n\t *\n\t * @param\tstring name\n\t * @return\tn/a\n\t */\n\n\tacf.removePreference = function ( name ) {\n\t\tacf.setPreference( name, null );\n\t};\n\n\t/**\n\t * remove\n\t *\n\t * Removes an element with fade effect\n\t *\n\t * @date\t1/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.remove = function ( props ) {\n\t\t// allow jQuery\n\t\tif ( props instanceof jQuery ) {\n\t\t\tprops = {\n\t\t\t\ttarget: props,\n\t\t\t};\n\t\t}\n\n\t\t// defaults\n\t\tprops = acf.parseArgs( props, {\n\t\t\ttarget: false,\n\t\t\tendHeight: 0,\n\t\t\tcomplete: function () {},\n\t\t} );\n\n\t\t// action\n\t\tacf.doAction( 'remove', props.target );\n\n\t\t// tr\n\t\tif ( props.target.is( 'tr' ) ) {\n\t\t\tremoveTr( props );\n\n\t\t\t// div\n\t\t} else {\n\t\t\tremoveDiv( props );\n\t\t}\n\t};\n\n\t/**\n\t * removeDiv\n\t *\n\t * description\n\t *\n\t * @date\t16/2/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar removeDiv = function ( props ) {\n\t\t// vars\n\t\tvar $el = props.target;\n\t\tvar height = $el.height();\n\t\tvar width = $el.width();\n\t\tvar margin = $el.css( 'margin' );\n\t\tvar outerHeight = $el.outerHeight( true );\n\t\tvar style = $el.attr( 'style' ) + ''; // needed to copy\n\n\t\t// wrap\n\t\t$el.wrap( '<div class=\"acf-temp-remove\" style=\"height:' + outerHeight + 'px\"></div>' );\n\t\tvar $wrap = $el.parent();\n\n\t\t// set pos\n\t\t$el.css( {\n\t\t\theight: height,\n\t\t\twidth: width,\n\t\t\tmargin: margin,\n\t\t\tposition: 'absolute',\n\t\t} );\n\n\t\t// fade wrap\n\t\tsetTimeout( function () {\n\t\t\t$wrap.css( {\n\t\t\t\topacity: 0,\n\t\t\t\theight: props.endHeight,\n\t\t\t} );\n\t\t}, 50 );\n\n\t\t// remove\n\t\tsetTimeout( function () {\n\t\t\t$el.attr( 'style', style );\n\t\t\t$wrap.remove();\n\t\t\tprops.complete();\n\t\t}, 301 );\n\t};\n\n\t/**\n\t * removeTr\n\t *\n\t * description\n\t *\n\t * @date\t16/2/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar removeTr = function ( props ) {\n\t\t// vars\n\t\tvar $tr = props.target;\n\t\tvar height = $tr.height();\n\t\tvar children = $tr.children().length;\n\n\t\t// create dummy td\n\t\tvar $td = $(\n\t\t\t'<td class=\"acf-temp-remove\" style=\"padding:0; height:' + height + 'px\" colspan=\"' + children + '\"></td>'\n\t\t);\n\n\t\t// fade away tr\n\t\t$tr.addClass( 'acf-remove-element' );\n\n\t\t// update HTML after fade animation\n\t\tsetTimeout( function () {\n\t\t\t$tr.html( $td );\n\t\t}, 251 );\n\n\t\t// allow .acf-temp-remove to exist before changing CSS\n\t\tsetTimeout( function () {\n\t\t\t// remove class\n\t\t\t$tr.removeClass( 'acf-remove-element' );\n\n\t\t\t// collapse\n\t\t\t$td.css( {\n\t\t\t\theight: props.endHeight,\n\t\t\t} );\n\t\t}, 300 );\n\n\t\t// remove\n\t\tsetTimeout( function () {\n\t\t\t$tr.remove();\n\t\t\tprops.complete();\n\t\t}, 451 );\n\t};\n\n\t/**\n\t * duplicate\n\t *\n\t * description\n\t *\n\t * @date\t3/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.duplicate = function ( args ) {\n\t\t// allow jQuery\n\t\tif ( args instanceof jQuery ) {\n\t\t\targs = {\n\t\t\t\ttarget: args,\n\t\t\t};\n\t\t}\n\n\t\t// defaults\n\t\targs = acf.parseArgs( args, {\n\t\t\ttarget: false,\n\t\t\tsearch: '',\n\t\t\treplace: '',\n\t\t\trename: true,\n\t\t\tbefore: function ( $el ) {},\n\t\t\tafter: function ( $el, $el2 ) {},\n\t\t\tappend: function ( $el, $el2 ) {\n\t\t\t\t$el.after( $el2 );\n\t\t\t},\n\t\t} );\n\n\t\t// compatibility\n\t\targs.target = args.target || args.$el;\n\n\t\t// vars\n\t\tvar $el = args.target;\n\n\t\t// search\n\t\targs.search = args.search || $el.attr( 'data-id' );\n\t\targs.replace = args.replace || acf.uniqid();\n\n\t\t// before\n\t\t// - allow acf to modify DOM\n\t\t// - fixes bug where select field option is not selected\n\t\targs.before( $el );\n\t\tacf.doAction( 'before_duplicate', $el );\n\n\t\t// clone\n\t\tvar $el2 = $el.clone();\n\n\t\t// rename\n\t\tif ( args.rename ) {\n\t\t\tacf.rename( {\n\t\t\t\ttarget: $el2,\n\t\t\t\tsearch: args.search,\n\t\t\t\treplace: args.replace,\n\t\t\t\treplacer: typeof args.rename === 'function' ? args.rename : null,\n\t\t\t} );\n\t\t}\n\n\t\t// remove classes\n\t\t$el2.removeClass( 'acf-clone' );\n\t\t$el2.find( '.ui-sortable' ).removeClass( 'ui-sortable' );\n\n\t\t// remove any initialised select2s prevent the duplicated object stealing the previous select2.\n\t\t$el2.find( '[data-select2-id]' ).removeAttr( 'data-select2-id' );\n\t\t$el2.find( '.select2' ).remove();\n\n\t\t// subfield select2 renames happen after init and contain a duplicated ID. force change those IDs to prevent this.\n\t\t$el2.find( '.acf-is-subfields select[data-ui=\"1\"]' ).each( function () {\n\t\t\t$( this ).prop(\n\t\t\t\t'id',\n\t\t\t\t$( this )\n\t\t\t\t\t.prop( 'id' )\n\t\t\t\t\t.replace( 'acf_fields', acf.uniqid( 'duplicated_' ) + '_acf_fields' )\n\t\t\t);\n\t\t} );\n\n\t\t// remove tab wrapper to ensure proper init\n\t\t$el2.find( '.acf-field-settings > .acf-tab-wrap' ).remove();\n\n\t\t// after\n\t\t// - allow acf to modify DOM\n\t\targs.after( $el, $el2 );\n\t\tacf.doAction( 'after_duplicate', $el, $el2 );\n\n\t\t// append\n\t\targs.append( $el, $el2 );\n\n\t\t/**\n\t\t * Fires after an element has been duplicated and appended to the DOM.\n\t\t *\n\t\t * @date\t30/10/19\n\t\t * @since\t5.8.7\n\t\t *\n\t\t * @param\tjQuery $el The original element.\n\t\t * @param\tjQuery $el2 The duplicated element.\n\t\t */\n\t\tacf.doAction( 'duplicate', $el, $el2 );\n\n\t\t// append\n\t\tacf.doAction( 'append', $el2 );\n\n\t\t// return\n\t\treturn $el2;\n\t};\n\n\t/**\n\t * rename\n\t *\n\t * description\n\t *\n\t * @date\t7/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.rename = function ( args ) {\n\t\t// Allow jQuery param.\n\t\tif ( args instanceof jQuery ) {\n\t\t\targs = {\n\t\t\t\ttarget: args,\n\t\t\t};\n\t\t}\n\n\t\t// Apply default args.\n\t\targs = acf.parseArgs( args, {\n\t\t\ttarget: false,\n\t\t\tdestructive: false,\n\t\t\tsearch: '',\n\t\t\treplace: '',\n\t\t\treplacer: null,\n\t\t} );\n\n\t\t// Extract args.\n\t\tvar $el = args.target;\n\n\t\t// Provide backup for empty args.\n\t\tif ( ! args.search ) {\n\t\t\targs.search = $el.attr( 'data-id' );\n\t\t}\n\t\tif ( ! args.replace ) {\n\t\t\targs.replace = acf.uniqid( 'acf' );\n\t\t}\n\t\tif ( ! args.replacer ) {\n\t\t\targs.replacer = function ( name, value, search, replace ) {\n\t\t\t\treturn value.replace( search, replace );\n\t\t\t};\n\t\t}\n\n\t\t// Callback function for jQuery replacing.\n\t\tvar withReplacer = function ( name ) {\n\t\t\treturn function ( i, value ) {\n\t\t\t\treturn args.replacer( name, value, args.search, args.replace );\n\t\t\t};\n\t\t};\n\n\t\t// Destructive Replace.\n\t\tif ( args.destructive ) {\n\t\t\tvar html = acf.strReplace( args.search, args.replace, $el.outerHTML() );\n\t\t\t$el.replaceWith( html );\n\n\t\t\t// Standard Replace.\n\t\t} else {\n\t\t\t$el.attr( 'data-id', args.replace );\n\t\t\t$el.find( '[id*=\"' + args.search + '\"]' ).attr( 'id', withReplacer( 'id' ) );\n\t\t\t$el.find( '[for*=\"' + args.search + '\"]' ).attr( 'for', withReplacer( 'for' ) );\n\t\t\t$el.find( '[name*=\"' + args.search + '\"]' ).attr( 'name', withReplacer( 'name' ) );\n\t\t}\n\n\t\t// return\n\t\treturn $el;\n\t};\n\n\t/**\n\t * Prepares AJAX data prior to being sent.\n\t *\n\t * @since 5.6.5\n\t *\n\t * @param Object data The data to prepare\n\t * @param boolean use_global_nonce Should we ignore any nonce provided in the data object and force ACF's global nonce for this request\n\t * @return Object The prepared data.\n\t */\n\tacf.prepareForAjax = function ( data, use_global_nonce = false ) {\n\t\t// Set a default nonce if we don't have one already.\n\t\tif ( use_global_nonce || 'undefined' === typeof data.nonce ) {\n\t\t\tdata.nonce = acf.get( 'nonce' );\n\t\t}\n\n\t\tdata.post_id = acf.get( 'post_id' );\n\n\t\tif ( acf.has( 'language' ) ) {\n\t\t\tdata.lang = acf.get( 'language' );\n\t\t}\n\n\t\t// Filter for 3rd party customization.\n\t\tdata = acf.applyFilters( 'prepare_for_ajax', data );\n\n\t\treturn data;\n\t};\n\n\t/**\n\t * acf.startButtonLoading\n\t *\n\t * description\n\t *\n\t * @date\t5/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.startButtonLoading = function ( $el ) {\n\t\t$el.prop( 'disabled', true );\n\t\t$el.after( ' <i class=\"acf-loading\"></i>' );\n\t};\n\n\tacf.stopButtonLoading = function ( $el ) {\n\t\t$el.prop( 'disabled', false );\n\t\t$el.next( '.acf-loading' ).remove();\n\t};\n\n\t/**\n\t * acf.showLoading\n\t *\n\t * description\n\t *\n\t * @date\t12/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.showLoading = function ( $el ) {\n\t\t$el.append( '<div class=\"acf-loading-overlay\"><i class=\"acf-loading\"></i></div>' );\n\t};\n\n\tacf.hideLoading = function ( $el ) {\n\t\t$el.children( '.acf-loading-overlay' ).remove();\n\t};\n\n\t/**\n\t * acf.updateUserSetting\n\t *\n\t * description\n\t *\n\t * @date\t5/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.updateUserSetting = function ( name, value ) {\n\t\tvar ajaxData = {\n\t\t\taction: 'acf/ajax/user_setting',\n\t\t\tname: name,\n\t\t\tvalue: value,\n\t\t};\n\n\t\t$.ajax( {\n\t\t\turl: acf.get( 'ajaxurl' ),\n\t\t\tdata: acf.prepareForAjax( ajaxData ),\n\t\t\ttype: 'post',\n\t\t\tdataType: 'html',\n\t\t} );\n\t};\n\n\t/**\n\t * acf.val\n\t *\n\t * description\n\t *\n\t * @date\t8/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.val = function ( $input, value, silent ) {\n\t\t// vars\n\t\tvar prevValue = $input.val();\n\n\t\t// bail if no change\n\t\tif ( value === prevValue ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// update value\n\t\t$input.val( value );\n\n\t\t// prevent select elements displaying blank value if option doesn't exist\n\t\tif ( $input.is( 'select' ) && $input.val() === null ) {\n\t\t\t$input.val( prevValue );\n\t\t\treturn false;\n\t\t}\n\n\t\t// update with trigger\n\t\tif ( silent !== true ) {\n\t\t\t$input.trigger( 'change' );\n\t\t}\n\n\t\t// return\n\t\treturn true;\n\t};\n\n\t/**\n\t * acf.show\n\t *\n\t * description\n\t *\n\t * @date\t9/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.show = function ( $el, lockKey ) {\n\t\t// unlock\n\t\tif ( lockKey ) {\n\t\t\tacf.unlock( $el, 'hidden', lockKey );\n\t\t}\n\n\t\t// bail early if $el is still locked\n\t\tif ( acf.isLocked( $el, 'hidden' ) ) {\n\t\t\t//console.log( 'still locked', getLocks( $el, 'hidden' ));\n\t\t\treturn false;\n\t\t}\n\n\t\t// $el is hidden, remove class and return true due to change in visibility\n\t\tif ( $el.hasClass( 'acf-hidden' ) ) {\n\t\t\t$el.removeClass( 'acf-hidden' );\n\t\t\treturn true;\n\n\t\t\t// $el is visible, return false due to no change in visibility\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t/**\n\t * acf.hide\n\t *\n\t * description\n\t *\n\t * @date\t9/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.hide = function ( $el, lockKey ) {\n\t\t// lock\n\t\tif ( lockKey ) {\n\t\t\tacf.lock( $el, 'hidden', lockKey );\n\t\t}\n\n\t\t// $el is hidden, return false due to no change in visibility\n\t\tif ( $el.hasClass( 'acf-hidden' ) ) {\n\t\t\treturn false;\n\n\t\t\t// $el is visible, add class and return true due to change in visibility\n\t\t} else {\n\t\t\t$el.addClass( 'acf-hidden' );\n\t\t\treturn true;\n\t\t}\n\t};\n\n\t/**\n\t * acf.isHidden\n\t *\n\t * description\n\t *\n\t * @date\t9/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.isHidden = function ( $el ) {\n\t\treturn $el.hasClass( 'acf-hidden' );\n\t};\n\n\t/**\n\t * acf.isVisible\n\t *\n\t * description\n\t *\n\t * @date\t9/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.isVisible = function ( $el ) {\n\t\treturn ! acf.isHidden( $el );\n\t};\n\n\t/**\n\t * enable\n\t *\n\t * description\n\t *\n\t * @date\t12/3/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar enable = function ( $el, lockKey ) {\n\t\t// check class. Allow .acf-disabled to overrule all JS\n\t\tif ( $el.hasClass( 'acf-disabled' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// unlock\n\t\tif ( lockKey ) {\n\t\t\tacf.unlock( $el, 'disabled', lockKey );\n\t\t}\n\n\t\t// bail early if $el is still locked\n\t\tif ( acf.isLocked( $el, 'disabled' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// $el is disabled, remove prop and return true due to change\n\t\tif ( $el.prop( 'disabled' ) ) {\n\t\t\t$el.prop( 'disabled', false );\n\t\t\treturn true;\n\n\t\t\t// $el is enabled, return false due to no change\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t/**\n\t * acf.enable\n\t *\n\t * description\n\t *\n\t * @date\t9/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.enable = function ( $el, lockKey ) {\n\t\t// enable single input\n\t\tif ( $el.attr( 'name' ) ) {\n\t\t\treturn enable( $el, lockKey );\n\t\t}\n\n\t\t// find and enable child inputs\n\t\t// return true if any inputs have changed\n\t\tvar results = false;\n\t\t$el.find( '[name]' ).each( function () {\n\t\t\tvar result = enable( $( this ), lockKey );\n\t\t\tif ( result ) {\n\t\t\t\tresults = true;\n\t\t\t}\n\t\t} );\n\t\treturn results;\n\t};\n\n\t/**\n\t * disable\n\t *\n\t * description\n\t *\n\t * @date\t12/3/18\n\t * @since\t5.6.9\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tvar disable = function ( $el, lockKey ) {\n\t\t// lock\n\t\tif ( lockKey ) {\n\t\t\tacf.lock( $el, 'disabled', lockKey );\n\t\t}\n\n\t\t// $el is disabled, return false due to no change\n\t\tif ( $el.prop( 'disabled' ) ) {\n\t\t\treturn false;\n\n\t\t\t// $el is enabled, add prop and return true due to change\n\t\t} else {\n\t\t\t$el.prop( 'disabled', true );\n\t\t\treturn true;\n\t\t}\n\t};\n\n\t/**\n\t * acf.disable\n\t *\n\t * description\n\t *\n\t * @date\t9/2/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.disable = function ( $el, lockKey ) {\n\t\t// disable single input\n\t\tif ( $el.attr( 'name' ) ) {\n\t\t\treturn disable( $el, lockKey );\n\t\t}\n\n\t\t// find and enable child inputs\n\t\t// return true if any inputs have changed\n\t\tvar results = false;\n\t\t$el.find( '[name]' ).each( function () {\n\t\t\tvar result = disable( $( this ), lockKey );\n\t\t\tif ( result ) {\n\t\t\t\tresults = true;\n\t\t\t}\n\t\t} );\n\t\treturn results;\n\t};\n\n\t/**\n\t * acf.isset\n\t *\n\t * description\n\t *\n\t * @date\t10/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.isset = function ( obj /*, level1, level2, ... */ ) {\n\t\tfor ( var i = 1; i < arguments.length; i++ ) {\n\t\t\tif ( ! obj || ! obj.hasOwnProperty( arguments[ i ] ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tobj = obj[ arguments[ i ] ];\n\t\t}\n\t\treturn true;\n\t};\n\n\t/**\n\t * acf.isget\n\t *\n\t * description\n\t *\n\t * @date\t10/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.isget = function ( obj /*, level1, level2, ... */ ) {\n\t\tfor ( var i = 1; i < arguments.length; i++ ) {\n\t\t\tif ( ! obj || ! obj.hasOwnProperty( arguments[ i ] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tobj = obj[ arguments[ i ] ];\n\t\t}\n\t\treturn obj;\n\t};\n\n\t/**\n\t * acf.getFileInputData\n\t *\n\t * description\n\t *\n\t * @date\t10/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.getFileInputData = function ( $input, callback ) {\n\t\t// vars\n\t\tvar value = $input.val();\n\n\t\t// bail early if no value\n\t\tif ( ! value ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// data\n\t\tvar data = {\n\t\t\turl: value,\n\t\t};\n\n\t\t// modern browsers\n\t\tvar file = $input[ 0 ].files.length ? acf.isget( $input[ 0 ].files, 0 ) : false;\n\t\tif ( file ) {\n\t\t\t// update data\n\t\t\tdata.size = file.size;\n\t\t\tdata.type = file.type;\n\n\t\t\t// image\n\t\t\tif ( file.type.indexOf( 'image' ) > -1 ) {\n\t\t\t\t// vars\n\t\t\t\tvar windowURL = window.URL || window.webkitURL;\n\t\t\t\tvar img = new Image();\n\n\t\t\t\timg.onload = function () {\n\t\t\t\t\t// update\n\t\t\t\t\tdata.width = this.width;\n\t\t\t\t\tdata.height = this.height;\n\n\t\t\t\t\tcallback( data );\n\t\t\t\t};\n\t\t\t\timg.src = windowURL.createObjectURL( file );\n\t\t\t} else {\n\t\t\t\tcallback( data );\n\t\t\t}\n\t\t} else {\n\t\t\tcallback( data );\n\t\t}\n\t};\n\n\t/**\n\t * acf.isAjaxSuccess\n\t *\n\t * description\n\t *\n\t * @date\t18/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.isAjaxSuccess = function ( json ) {\n\t\treturn json && json.success;\n\t};\n\n\t/**\n\t * acf.getAjaxMessage\n\t *\n\t * description\n\t *\n\t * @date\t18/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.getAjaxMessage = function ( json ) {\n\t\treturn acf.isget( json, 'data', 'message' );\n\t};\n\n\t/**\n\t * acf.getAjaxError\n\t *\n\t * description\n\t *\n\t * @date\t18/1/18\n\t * @since\t5.6.5\n\t *\n\t * @param\ttype $var Description. Default.\n\t * @return\ttype Description.\n\t */\n\n\tacf.getAjaxError = function ( json ) {\n\t\treturn acf.isget( json, 'data', 'error' );\n\t};\n\n\t/**\n\t * Returns the error message from an XHR object.\n\t *\n\t * @date\t17/3/20\n\t * @since\t5.8.9\n\t *\n\t * @param\tobject xhr The XHR object.\n\t * @return\t(string)\n\t */\n\tacf.getXhrError = function ( xhr ) {\n\t\tif ( xhr.responseJSON ) {\n\t\t\t// Responses via `return new WP_Error();`\n\t\t\tif ( xhr.responseJSON.message ) {\n\t\t\t\treturn xhr.responseJSON.message;\n\t\t\t}\n\n\t\t\t// Responses via `wp_send_json_error();`.\n\t\t\tif ( xhr.responseJSON.data && xhr.responseJSON.data.error ) {\n\t\t\t\treturn xhr.responseJSON.data.error;\n\t\t\t}\n\t\t} else if ( xhr.statusText ) {\n\t\t\treturn xhr.statusText;\n\t\t}\n\n\t\treturn '';\n\t};\n\n\t/**\n\t * acf.renderSelect\n\t *\n\t * Renders the innter html for a select field.\n\t *\n\t * @date\t19/2/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tjQuery $select The select element.\n\t * @param\tarray choices An array of choices.\n\t * @return\tvoid\n\t */\n\n\tacf.renderSelect = function ( $select, choices ) {\n\t\t// vars\n\t\tvar value = $select.val();\n\t\tvar values = [];\n\n\t\t// callback\n\t\tvar crawl = function ( items ) {\n\t\t\t// vars\n\t\t\tvar itemsHtml = '';\n\n\t\t\t// loop\n\t\t\titems.map( function ( item ) {\n\t\t\t\t// vars\n\t\t\t\tvar text = item.text || item.label || '';\n\t\t\t\tvar id = item.id || item.value || '';\n\n\t\t\t\t// append\n\t\t\t\tvalues.push( id );\n\n\t\t\t\t// optgroup\n\t\t\t\tif ( item.children ) {\n\t\t\t\t\titemsHtml +=\n\t\t\t\t\t\t'<optgroup label=\"' + acf.escAttr( text ) + '\">' + crawl( item.children ) + '</optgroup>';\n\n\t\t\t\t\t// option\n\t\t\t\t} else {\n\t\t\t\t\titemsHtml +=\n\t\t\t\t\t\t'<option value=\"' +\n\t\t\t\t\t\tacf.escAttr( id ) +\n\t\t\t\t\t\t'\"' +\n\t\t\t\t\t\t( item.disabled ? ' disabled=\"disabled\"' : '' ) +\n\t\t\t\t\t\t'>' +\n\t\t\t\t\t\tacf.strEscape( text ) +\n\t\t\t\t\t\t'</option>';\n\t\t\t\t}\n\t\t\t} );\n\t\t\t// return\n\t\t\treturn itemsHtml;\n\t\t};\n\n\t\t// update HTML\n\t\t$select.html( crawl( choices ) );\n\n\t\t// update value\n\t\tif ( values.indexOf( value ) > -1 ) {\n\t\t\t$select.val( value );\n\t\t}\n\n\t\t// return selected value\n\t\treturn $select.val();\n\t};\n\n\t/**\n\t * acf.lock\n\t *\n\t * Creates a \"lock\" on an element for a given type and key\n\t *\n\t * @date\t22/2/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tjQuery $el The element to lock.\n\t * @param\tstring type The type of lock such as \"condition\" or \"visibility\".\n\t * @param\tstring key The key that will be used to unlock.\n\t * @return\tvoid\n\t */\n\n\tvar getLocks = function ( $el, type ) {\n\t\treturn $el.data( 'acf-lock-' + type ) || [];\n\t};\n\n\tvar setLocks = function ( $el, type, locks ) {\n\t\t$el.data( 'acf-lock-' + type, locks );\n\t};\n\n\tacf.lock = function ( $el, type, key ) {\n\t\tvar locks = getLocks( $el, type );\n\t\tvar i = locks.indexOf( key );\n\t\tif ( i < 0 ) {\n\t\t\tlocks.push( key );\n\t\t\tsetLocks( $el, type, locks );\n\t\t}\n\t};\n\n\t/**\n\t * acf.unlock\n\t *\n\t * Unlocks a \"lock\" on an element for a given type and key\n\t *\n\t * @date\t22/2/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tjQuery $el The element to lock.\n\t * @param\tstring type The type of lock such as \"condition\" or \"visibility\".\n\t * @param\tstring key The key that will be used to unlock.\n\t * @return\tvoid\n\t */\n\n\tacf.unlock = function ( $el, type, key ) {\n\t\tvar locks = getLocks( $el, type );\n\t\tvar i = locks.indexOf( key );\n\t\tif ( i > -1 ) {\n\t\t\tlocks.splice( i, 1 );\n\t\t\tsetLocks( $el, type, locks );\n\t\t}\n\n\t\t// return true if is unlocked (no locks)\n\t\treturn locks.length === 0;\n\t};\n\n\t/**\n\t * acf.isLocked\n\t *\n\t * Returns true if a lock exists for a given type\n\t *\n\t * @date\t22/2/18\n\t * @since\t5.6.9\n\t *\n\t * @param\tjQuery $el The element to lock.\n\t * @param\tstring type The type of lock such as \"condition\" or \"visibility\".\n\t * @return\tvoid\n\t */\n\n\tacf.isLocked = function ( $el, type ) {\n\t\treturn getLocks( $el, type ).length > 0;\n\t};\n\n\t/**\n\t * acf.isGutenberg\n\t *\n\t * Returns true if the Gutenberg editor is being used.\n\t *\n\t * @since\t5.8.0\n\t *\n\t * @return\tbool\n\t */\n\tacf.isGutenberg = function () {\n\t\treturn !! ( window.wp && wp.data && wp.data.select && wp.data.select( 'core/editor' ) );\n\t};\n\n\t/**\n\t * acf.isGutenbergPostEditor\n\t *\n\t * Returns true if the Gutenberg post editor is being used.\n\t *\n\t * @since\t6.2.2\n\t *\n\t * @return\tbool\n\t */\n\tacf.isGutenbergPostEditor = function () {\n\t\treturn !! ( window.wp && wp.data && wp.data.select && wp.data.select( 'core/edit-post' ) );\n\t};\n\n\t/**\n\t * acf.objectToArray\n\t *\n\t * Returns an array of items from the given object.\n\t *\n\t * @date\t20/11/18\n\t * @since\t5.8.0\n\t *\n\t * @param\tobject obj The object of items.\n\t * @return\tarray\n\t */\n\tacf.objectToArray = function ( obj ) {\n\t\treturn Object.keys( obj ).map( function ( key ) {\n\t\t\treturn obj[ key ];\n\t\t} );\n\t};\n\n\t/**\n\t * acf.debounce\n\t *\n\t * Returns a debounced version of the passed function which will postpone its execution until after `wait` milliseconds have elapsed since the last time it was invoked.\n\t *\n\t * @date\t28/8/19\n\t * @since\t5.8.1\n\t *\n\t * @param\tfunction callback The callback function.\n\t * @return\tint wait The number of milliseconds to wait.\n\t */\n\tacf.debounce = function ( callback, wait ) {\n\t\tvar timeout;\n\t\treturn function () {\n\t\t\tvar context = this;\n\t\t\tvar args = arguments;\n\t\t\tvar later = function () {\n\t\t\t\tcallback.apply( context, args );\n\t\t\t};\n\t\t\tclearTimeout( timeout );\n\t\t\ttimeout = setTimeout( later, wait );\n\t\t};\n\t};\n\n\t/**\n\t * acf.throttle\n\t *\n\t * Returns a throttled version of the passed function which will allow only one execution per `limit` time period.\n\t *\n\t * @date\t28/8/19\n\t * @since\t5.8.1\n\t *\n\t * @param\tfunction callback The callback function.\n\t * @return\tint wait The number of milliseconds to wait.\n\t */\n\tacf.throttle = function ( callback, limit ) {\n\t\tvar busy = false;\n\t\treturn function () {\n\t\t\tif ( busy ) return;\n\t\t\tbusy = true;\n\t\t\tsetTimeout( function () {\n\t\t\t\tbusy = false;\n\t\t\t}, limit );\n\t\t\tcallback.apply( this, arguments );\n\t\t};\n\t};\n\n\t/**\n\t * acf.isInView\n\t *\n\t * Returns true if the given element is in view.\n\t *\n\t * @date\t29/8/19\n\t * @since\t5.8.1\n\t *\n\t * @param\telem el The dom element to inspect.\n\t * @return\tbool\n\t */\n\tacf.isInView = function ( el ) {\n\t\tif ( el instanceof jQuery ) {\n\t\t\tel = el[ 0 ];\n\t\t}\n\t\tvar rect = el.getBoundingClientRect();\n\t\treturn (\n\t\t\trect.top !== rect.bottom &&\n\t\t\trect.top >= 0 &&\n\t\t\trect.left >= 0 &&\n\t\t\trect.bottom <= ( window.innerHeight || document.documentElement.clientHeight ) &&\n\t\t\trect.right <= ( window.innerWidth || document.documentElement.clientWidth )\n\t\t);\n\t};\n\n\t/**\n\t * acf.onceInView\n\t *\n\t * Watches for a dom element to become visible in the browser and then excecutes the passed callback.\n\t *\n\t * @date\t28/8/19\n\t * @since\t5.8.1\n\t *\n\t * @param\tdom el The dom element to inspect.\n\t * @param\tfunction callback The callback function.\n\t */\n\tacf.onceInView = ( function () {\n\t\t// Define list.\n\t\tvar items = [];\n\t\tvar id = 0;\n\n\t\t// Define check function.\n\t\tvar check = function () {\n\t\t\titems.forEach( function ( item ) {\n\t\t\t\tif ( acf.isInView( item.el ) ) {\n\t\t\t\t\titem.callback.apply( this );\n\t\t\t\t\tpop( item.id );\n\t\t\t\t}\n\t\t\t} );\n\t\t};\n\n\t\t// And create a debounced version.\n\t\tvar debounced = acf.debounce( check, 300 );\n\n\t\t// Define add function.\n\t\tvar push = function ( el, callback ) {\n\t\t\t// Add event listener.\n\t\t\tif ( ! items.length ) {\n\t\t\t\t$( window ).on( 'scroll resize', debounced ).on( 'acfrefresh orientationchange', check );\n\t\t\t}\n\n\t\t\t// Append to list.\n\t\t\titems.push( { id: id++, el: el, callback: callback } );\n\t\t};\n\n\t\t// Define remove function.\n\t\tvar pop = function ( id ) {\n\t\t\t// Remove from list.\n\t\t\titems = items.filter( function ( item ) {\n\t\t\t\treturn item.id !== id;\n\t\t\t} );\n\n\t\t\t// Clean up listener.\n\t\t\tif ( ! items.length ) {\n\t\t\t\t$( window ).off( 'scroll resize', debounced ).off( 'acfrefresh orientationchange', check );\n\t\t\t}\n\t\t};\n\n\t\t// Define returned function.\n\t\treturn function ( el, callback ) {\n\t\t\t// Allow jQuery object.\n\t\t\tif ( el instanceof jQuery ) el = el[ 0 ];\n\n\t\t\t// Execute callback if already in view or add to watch list.\n\t\t\tif ( acf.isInView( el ) ) {\n\t\t\t\tcallback.apply( this );\n\t\t\t} else {\n\t\t\t\tpush( el, callback );\n\t\t\t}\n\t\t};\n\t} )();\n\n\t/**\n\t * acf.once\n\t *\n\t * Creates a function that is restricted to invoking `func` once.\n\t *\n\t * @date\t2/9/19\n\t * @since\t5.8.1\n\t *\n\t * @param\tfunction func The function to restrict.\n\t * @return\tfunction\n\t */\n\tacf.once = function ( func ) {\n\t\tvar i = 0;\n\t\treturn function () {\n\t\t\tif ( i++ > 0 ) {\n\t\t\t\treturn ( func = undefined );\n\t\t\t}\n\t\t\treturn func.apply( this, arguments );\n\t\t};\n\t};\n\n\t/**\n\t * Focuses attention to a specific element.\n\t *\n\t * @date\t05/05/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\tjQuery $el The jQuery element to focus.\n\t * @return\tvoid\n\t */\n\tacf.focusAttention = function ( $el ) {\n\t\tvar wait = 1000;\n\n\t\t// Apply class to focus attention.\n\t\t$el.addClass( 'acf-attention -focused' );\n\n\t\t// Scroll to element if needed.\n\t\tvar scrollTime = 500;\n\t\tif ( ! acf.isInView( $el ) ) {\n\t\t\t$( 'body, html' ).animate(\n\t\t\t\t{\n\t\t\t\t\tscrollTop: $el.offset().top - $( window ).height() / 2,\n\t\t\t\t},\n\t\t\t\tscrollTime\n\t\t\t);\n\t\t\twait += scrollTime;\n\t\t}\n\n\t\t// Remove class after $wait amount of time.\n\t\tvar fadeTime = 250;\n\t\tsetTimeout( function () {\n\t\t\t$el.removeClass( '-focused' );\n\t\t\tsetTimeout( function () {\n\t\t\t\t$el.removeClass( 'acf-attention' );\n\t\t\t}, fadeTime );\n\t\t}, wait );\n\t};\n\n\t/**\n\t * Description\n\t *\n\t * @date\t05/05/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\ttype Var Description.\n\t * @return\ttype Description.\n\t */\n\tacf.onFocus = function ( $el, callback ) {\n\t\t// Only run once per element.\n\t\t// if( $el.data('acf.onFocus') ) {\n\t\t// \treturn false;\n\t\t// }\n\n\t\t// Vars.\n\t\tvar ignoreBlur = false;\n\t\tvar focus = false;\n\n\t\t// Functions.\n\t\tvar onFocus = function () {\n\t\t\tignoreBlur = true;\n\t\t\tsetTimeout( function () {\n\t\t\t\tignoreBlur = false;\n\t\t\t}, 1 );\n\t\t\tsetFocus( true );\n\t\t};\n\t\tvar onBlur = function () {\n\t\t\tif ( ! ignoreBlur ) {\n\t\t\t\tsetFocus( false );\n\t\t\t}\n\t\t};\n\t\tvar addEvents = function () {\n\t\t\t$( document ).on( 'click', onBlur );\n\t\t\t//$el.on('acfBlur', onBlur);\n\t\t\t$el.on( 'blur', 'input, select, textarea', onBlur );\n\t\t};\n\t\tvar removeEvents = function () {\n\t\t\t$( document ).off( 'click', onBlur );\n\t\t\t//$el.off('acfBlur', onBlur);\n\t\t\t$el.off( 'blur', 'input, select, textarea', onBlur );\n\t\t};\n\t\tvar setFocus = function ( value ) {\n\t\t\tif ( focus === value ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ( value ) {\n\t\t\t\taddEvents();\n\t\t\t} else {\n\t\t\t\tremoveEvents();\n\t\t\t}\n\t\t\tfocus = value;\n\t\t\tcallback( value );\n\t\t};\n\n\t\t// Add events and set data.\n\t\t$el.on( 'click', onFocus );\n\t\t//$el.on('acfFocus', onFocus);\n\t\t$el.on( 'focus', 'input, select, textarea', onFocus );\n\t\t//$el.data('acf.onFocus', true);\n\t};\n\n\t/**\n\t * Disable form submit buttons\n\t *\n\t * @since 6.2.3\n\t *\n\t * @param event e\n\t * @returns void\n\t */\n\tacf.disableForm = function ( e ) {\n\t\t// Disable submit button.\n\t\tif ( e.submitter ) e.submitter.classList.add( 'disabled' );\n\t};\n\n\t/*\n\t * exists\n\t *\n\t * This function will return true if a jQuery selection exists\n\t *\n\t * @type\tfunction\n\t * @date\t8/09/2014\n\t * @since\t5.0.0\n\t *\n\t * @param\tn/a\n\t * @return\t(boolean)\n\t */\n\n\t$.fn.exists = function () {\n\t\treturn $( this ).length > 0;\n\t};\n\n\t/*\n\t * outerHTML\n\t *\n\t * This function will return a string containing the HTML of the selected element\n\t *\n\t * @type\tfunction\n\t * @date\t19/11/2013\n\t * @since\t5.0.0\n\t *\n\t * @param\t$.fn\n\t * @return\t(string)\n\t */\n\n\t$.fn.outerHTML = function () {\n\t\treturn $( this ).get( 0 ).outerHTML;\n\t};\n\n\t/*\n\t * indexOf\n\t *\n\t * This function will provide compatibility for ie8\n\t *\n\t * @type\tfunction\n\t * @date\t5/3/17\n\t * @since\t5.5.10\n\t *\n\t * @param\tn/a\n\t * @return\tn/a\n\t */\n\n\tif ( ! Array.prototype.indexOf ) {\n\t\tArray.prototype.indexOf = function ( val ) {\n\t\t\treturn $.inArray( val, this );\n\t\t};\n\t}\n\n\t/**\n\t * Returns true if value is a number or a numeric string.\n\t *\n\t * @date\t30/11/20\n\t * @since\t5.9.4\n\t * @link\thttps://stackoverflow.com/questions/9716468/pure-javascript-a-function-like-jquerys-isnumeric/9716488#9716488\n\t *\n\t * @param\tmixed n The variable being evaluated.\n\t * @return\tbool.\n\t */\n\tacf.isNumeric = function ( n ) {\n\t\treturn ! isNaN( parseFloat( n ) ) && isFinite( n );\n\t};\n\n\t/**\n\t * Triggers a \"refresh\" action used by various Components to redraw the DOM.\n\t *\n\t * @date\t26/05/2020\n\t * @since\t5.9.0\n\t *\n\t * @param\tvoid\n\t * @return\tvoid\n\t */\n\tacf.refresh = acf.debounce( function () {\n\t\t$( window ).trigger( 'acfrefresh' );\n\t\tacf.doAction( 'refresh' );\n\t}, 0 );\n\n\t/**\n\t * Log something to console if we're in debug mode.\n\t *\n\t * @since 6.3\n\t */\n\tacf.debug = function () {\n\t\tif ( acf.get( 'debug' ) ) console.log.apply( null, arguments );\n\t};\n\n\t// Set up actions from events\n\t$( document ).ready( function () {\n\t\tacf.doAction( 'ready' );\n\t} );\n\n\t$( window ).on( 'load', function () {\n\t\t// Use timeout to ensure action runs after Gutenberg has modified DOM elements during \"DOMContentLoaded\".\n\t\tsetTimeout( function () {\n\t\t\tacf.doAction( 'load' );\n\t\t} );\n\t} );\n\n\t$( window ).on( 'beforeunload', function () {\n\t\tacf.doAction( 'unload' );\n\t} );\n\n\t$( window ).on( 'resize', function () {\n\t\tacf.doAction( 'resize' );\n\t} );\n\n\t$( document ).on( 'sortstart', function ( event, ui ) {\n\t\tacf.doAction( 'sortstart', ui.item, ui.placeholder );\n\t} );\n\n\t$( document ).on( 'sortstop', function ( event, ui ) {\n\t\tacf.doAction( 'sortstop', ui.item, ui.placeholder );\n\t} );\n} )( jQuery );\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import './_acf.js';\nimport './_acf-hooks.js';\nimport './_acf-model.js';\nimport './_acf-popup.js';\nimport './_acf-modal.js';\nimport './_acf-panel.js';\nimport './_acf-notice.js';\nimport './_acf-tooltip.js';\n"],"names":["window","undefined","EventManager","MethodsAvailable","removeFilter","applyFilters","addFilter","removeAction","doAction","addAction","storage","getStorage","STORAGE","actions","filters","action","callback","priority","context","parseInt","_addHook","args","Array","prototype","slice","call","arguments","shift","_runHook","_removeHook","filter","type","hook","handlers","i","length","splice","handler","hookObject","hooks","push","_hookInsertSort","tmpHook","j","prevHook","len","apply","acf","$","models","Modal","Model","extend","data","title","content","toolbar","events","setup","props","$el","render","initialize","open","get","join","replaceWith","update","parseArgs","html","append","close","remove","onClickClose","e","preventDefault","focus","find","first","trigger","lockFocusToModal","locked","inertElement","inert","attr","returnFocusToOrigin","openedBy","closest","newModal","jQuery","delegateEventSplitter","protoProps","Parent","Child","hasOwnProperty","constructor","Object","create","cid","uniqueId","addEvents","addActions","addFilters","wait","didAction","id","busy","changed","eventScope","name","has","set","value","silent","prevValue","inherit","prop","addElements","elements","keys","addElement","selector","key","match","on","removeEvents","off","getEventTarget","event","document","validateEvent","target","is","proxyEvent","proxy","arrayArgs","extraArgs","eventArgs","currentTarget","concat","a1","a2","a3","a4","bubbles","triggerHandler","removeActions","removeFilters","setTimeout","milliseconds","time","console","timeEnd","show","hide","getInstance","getInstances","instances","each","Notice","text","timeout","dismiss","location","tmpl","addClass","away","$target","prepend","prevType","removeClass","escHtml","newNotice","noticeManager","$notices","dismissed","getPreference","includes","setPreference","panel","onClick","toggle","parent","isOpen","hasClass","Popup","width","height","loading","lockFocusToPopup","__","css","$loading","onPressEscapeClose","newPopup","newTooltip","confirmRemove","textConfirm","textCancel","TooltipConfirm","confirm","Tooltip","position","fade","$tooltip","top","left","tolerance","targetWidth","outerWidth","targetHeight","outerHeight","targetTop","offset","targetLeft","tooltipWidth","tooltipHeight","tooltipTop","scrollTop","targetConfirm","cancel","$document","onCancel","stopImmediatePropagation","onConfirm","tooltipHoverHelper","tooltip","showTitle","hideTitle","onKeyUp","idCounter","prefix","uniqueArray","array","onlyUnique","index","self","indexOf","uniqidSeed","uniqid","moreEntropy","retId","formatSeed","seed","reqWidth","toString","Math","floor","random","Date","getTime","toFixed","strReplace","search","replace","subject","split","strCamelCase","str","matches","map","s","c","charAt","toLowerCase","toUpperCase","strPascalCase","camel","strSlugify","strSanitize","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","Ø","Ù","Ú","Û","Ü","Ý","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","ÿ","Ā","ā","Ă","ă","Ą","ą","Ć","ć","Ĉ","ĉ","Ċ","ċ","Č","č","Ď","ď","Đ","đ","Ē","ē","Ĕ","ĕ","Ė","ė","Ę","ę","Ě","ě","Ĝ","ĝ","Ğ","ğ","Ġ","ġ","Ģ","ģ","Ĥ","ĥ","Ħ","ħ","Ĩ","ĩ","Ī","ī","Ĭ","ĭ","Į","į","İ","ı","IJ","ij","Ĵ","ĵ","Ķ","ķ","Ĺ","ĺ","Ļ","ļ","Ľ","ľ","Ŀ","ŀ","Ł","ł","Ń","ń","Ņ","ņ","Ň","ň","ʼn","Ō","ō","Ŏ","ŏ","Ő","ő","Œ","œ","Ŕ","ŕ","Ŗ","ŗ","Ř","ř","Ś","ś","Ŝ","ŝ","Ş","ş","Š","š","Ţ","ţ","Ť","ť","Ŧ","ŧ","Ũ","ũ","Ū","ū","Ŭ","ŭ","Ů","ů","Ű","ű","Ų","ų","Ŵ","ŵ","Ŷ","ŷ","Ÿ","Ź","ź","Ż","ż","Ž","ž","ſ","ƒ","Ơ","ơ","Ư","ư","Ǎ","ǎ","Ǐ","ǐ","Ǒ","ǒ","Ǔ","ǔ","Ǖ","ǖ","Ǘ","ǘ","Ǚ","ǚ","Ǜ","ǜ","Ǻ","ǻ","Ǽ","ǽ","Ǿ","ǿ","nonWord","mapping","strMatch","s1","s2","val","min","strEscape","string","htmlEscapes","chr","strUnescape","htmlUnescapes","entity","escAttr","encode","decode","defaults","acfL10n","_x","_n","single","plural","number","isArray","a","isObject","buildObject","obj","ref","String","serialize","inputs","serializeArray","item","serializeForAjax","actionHistory","doingAction","currentAction","k","preferences","JSON","parse","localStorage","getItem","getPreferenceName","substr","setItem","stringify","removePreference","endHeight","complete","removeTr","removeDiv","margin","style","wrap","$wrap","opacity","$tr","children","$td","duplicate","rename","before","after","$el2","clone","replacer","removeAttr","destructive","withReplacer","outerHTML","prepareForAjax","use_global_nonce","nonce","post_id","lang","startButtonLoading","stopButtonLoading","next","showLoading","hideLoading","updateUserSetting","ajaxData","ajax","url","dataType","$input","lockKey","unlock","isLocked","lock","isHidden","isVisible","enable","results","result","disable","isset","isget","getFileInputData","file","files","size","windowURL","URL","webkitURL","img","Image","onload","src","createObjectURL","isAjaxSuccess","json","success","getAjaxMessage","getAjaxError","getXhrError","xhr","responseJSON","message","error","statusText","renderSelect","$select","choices","values","crawl","items","itemsHtml","label","disabled","getLocks","setLocks","locks","isGutenberg","wp","select","isGutenbergPostEditor","objectToArray","debounce","later","clearTimeout","throttle","limit","isInView","el","rect","getBoundingClientRect","bottom","innerHeight","documentElement","clientHeight","right","innerWidth","clientWidth","onceInView","check","forEach","pop","debounced","once","func","focusAttention","scrollTime","animate","fadeTime","onFocus","ignoreBlur","setFocus","onBlur","disableForm","submitter","classList","add","fn","exists","inArray","isNumeric","n","isNaN","parseFloat","isFinite","refresh","debug","log","ready","ui","placeholder"],"sourceRoot":""}
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка