{"version":3,"sources":["jsdelivr-header.js","/npm/vue-once@2.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,QAAQ,QAAU,SAAS,GACzB,IAAI,EAAI,EAAI,KAEZ,EAAI,UAAU,OAAQ,CACpB,MAAM,EAEN,KAAM,WACJ,KAAK,QAAU,KAAK,QAAQ,MACxB,KAAK,GACL,KAAK,QAAQ,SAAS,EAC5B,EAEA,OAAQ,SAAS,GACf,GAAuB,mBAAZ,EAAX,CAKA,IAAI,EAAO,KACP,EAAU,KAAK,QAEnB,KAAK,QAAU,SAAS,GACtB,EAAK,QAEL,EAAE,SAAW,EAAK,GAClB,EAAQ,OAAS,EAEjB,IAAI,EAAM,EAAQ,KAAK,EAAS,GAGhC,OAFA,EAAQ,OAAS,KAEV,CACT,EAEA,KAAK,GAAG,iBAAiB,KAAK,IAAK,KAAK,QAjBxC,MAFE,EAAE,KAAK,qBAAuB,KAAK,WAAa,sBAoBpD,EAEA,MAAO,WACL,KAAK,GAAG,oBAAoB,KAAK,IAAK,KAAK,QAC7C,EAEA,OAAQ,WACN,KAAK,OACP,GAEJ","file":"/npm/vue-once@2.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vue-once@2.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nexports.install = function(Vue) {\n  var _ = Vue.util;\n\n  Vue.directive('once', {\n    isFn: true,\n\n    bind: function() {\n      this.context = this.binding.isExp\n        ? this.vm\n        : this.binding.compiler.vm;\n    },\n\n    update: function(handler) {\n      if (typeof handler !== 'function') {\n        _.warn('Directive \"v-once:' + this.expression + '\" expects a method.');\n        return;\n      }\n\n      var self = this;\n      var context = this.context;\n\n      this.handler = function(e) {\n        self.reset();\n\n        e.targetVM = self.vm;\n        context.$event = e;\n\n        var res = handler.call(context, e);\n        context.$event = null;\n\n        return res;\n      };\n\n      this.el.addEventListener(this.arg, this.handler);\n    },\n\n    reset: function() {\n      this.el.removeEventListener(this.arg, this.handler);\n    },\n\n    unbind: function() {\n      this.reset();\n    }\n  });\n};\n"]}